Class PublishedSnapshotCacheStatusController
- Namespace
- Umbraco.Cms.Web.BackOffice.Controllers
- Assembly
- Umbraco.Web.BackOffice.dll
[Authorize(Policy = "SectionAccessSettings")]
public class PublishedSnapshotCacheStatusController : UmbracoAuthorizedApiController
- Inheritance
-
PublishedSnapshotCacheStatusController
- Inherited Members
Constructors
PublishedSnapshotCacheStatusController(IPublishedSnapshotService, IPublishedSnapshotStatus, DistributedCache)
Initializes a new instance of the PublishedSnapshotCacheStatusController class.
public PublishedSnapshotCacheStatusController(IPublishedSnapshotService publishedSnapshotService, IPublishedSnapshotStatus publishedSnapshotStatus, DistributedCache distributedCache)
Parameters
publishedSnapshotServiceIPublishedSnapshotServicepublishedSnapshotStatusIPublishedSnapshotStatusdistributedCacheDistributedCache
Methods
Collect()
Cleans up unused snapshots
[HttpGet]
public Task<string> Collect()
Returns
GetStatus()
Gets a status report
[HttpGet]
public string GetStatus()
Returns
RebuildDbCache()
Rebuilds the Database cache
[HttpPost]
public string RebuildDbCache()
Returns
ReloadCache()
[HttpPost]
public void ReloadCache()