Search Results for

    Show / Hide Table of Contents
    View Source

    Class WebsiteSettings.OutputCacheSettings

    Typed configuration options for output caching of website rendering.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Configuration.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public class WebsiteSettings.OutputCacheSettings

    Constructors

    View Source

    OutputCacheSettings()

    Declaration
    public OutputCacheSettings()

    Properties

    View Source

    ContentDuration

    Gets or sets the duration for which rendered content pages are cached.

    Declaration
    public TimeSpan ContentDuration { get; set; }
    Property Value
    Type Description
    TimeSpan

    Cache lifetime.

    Remarks

    The default cache duration is ten seconds, if this configuration value is not provided. Can be overridden per content item via IWebsiteOutputCacheDurationProvider.

    View Source

    Enabled

    Gets or sets a value indicating whether website output caching is enabled.

    Declaration
    public bool Enabled { get; set; }
    Property Value
    Type Description
    bool

    true if website output caching should be enabled; otherwise, false.

    Remarks

    The default value is false.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX