Table of Contents

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

publishedSnapshotService IPublishedSnapshotService
publishedSnapshotStatus IPublishedSnapshotStatus
distributedCache DistributedCache

Methods

Collect()

Cleans up unused snapshots

[HttpGet]
public Task<string> Collect()

Returns

Task<string>

GetStatus()

Gets a status report

[HttpGet]
public string GetStatus()

Returns

string

RebuildDbCache()

Rebuilds the Database cache

[HttpPost]
public string RebuildDbCache()

Returns

string

ReloadCache()

[HttpPost]
public void ReloadCache()