Search Results for

    Show / Hide Table of Contents
    View Source

    Class PublishedSnapshotCacheStatusController

    Inheritance
    System.Object
    Microsoft.AspNetCore.Mvc.ControllerBase
    UmbracoApiControllerBase
    UmbracoApiController
    UmbracoAuthorizedApiController
    Namespace: Umbraco.Cms.Web.BackOffice.Controllers
    Assembly: Umbraco.Web.BackOffice.dll
    Syntax
    [Authorize(Policy = "SectionAccessSettings")]
    public class PublishedSnapshotCacheStatusController : UmbracoAuthorizedApiController

    Constructors

    View Source

    PublishedSnapshotCacheStatusController(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 Source

    Collect()

    Cleans up unused snapshots

    Declaration
    [HttpGet]
    public async Task<string> Collect()
    Returns
    Type Description
    Task<System.String>
    View Source

    GetStatus()

    Gets a status report

    Declaration
    [HttpGet]
    public string GetStatus()
    Returns
    Type Description
    System.String
    View Source

    RebuildDbCache()

    Rebuilds the Database cache

    Declaration
    [HttpPost]
    public string RebuildDbCache()
    Returns
    Type Description
    System.String
    View Source

    ReloadCache()

    Declaration
    [HttpPost]
    public void ReloadCache()
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • PublishedSnapshotCacheStatusController(IPublishedSnapshotService, IPublishedSnapshotStatus, DistributedCache)
    • Methods
      • Collect()
      • GetStatus()
      • RebuildDbCache()
      • ReloadCache()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX