Class PublishedSnapshotCacheStatusController
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Namespace: Umbraco.Cms.Web.BackOffice.Controllers
Assembly: Umbraco.Web.BackOffice.dll
Syntax
[Authorize(Policy = "SectionAccessSettings")]
public class PublishedSnapshotCacheStatusController : UmbracoAuthorizedApiController
Constructors
View SourcePublishedSnapshotCacheStatusController(IPublishedSnapshotService, IPublishedSnapshotStatus, DistributedCache)
Initializes a new instance of the PublishedSnapshotCacheStatusController class.
Declaration
public PublishedSnapshotCacheStatusController(IPublishedSnapshotService publishedSnapshotService, IPublishedSnapshotStatus publishedSnapshotStatus, DistributedCache distributedCache)
Parameters
Type | Name | Description |
---|---|---|
IPublishedSnapshotService | publishedSnapshotService | |
IPublishedSnapshotStatus | publishedSnapshotStatus | |
DistributedCache | distributedCache |
Methods
View SourceCollect()
Cleans up unused snapshots
Declaration
[HttpGet]
public async Task<string> Collect()
Returns
Type | Description |
---|---|
Task<System.String> |
GetStatus()
Gets a status report
Declaration
[HttpGet]
public string GetStatus()
Returns
Type | Description |
---|---|
System.String |
RebuildDbCache()
Rebuilds the Database cache
Declaration
[HttpPost]
public string RebuildDbCache()
Returns
Type | Description |
---|---|
System.String |
ReloadCache()
Declaration
[HttpPost]
public void ReloadCache()