Search Results for

    Show / Hide Table of Contents
    View Source

    Class DeliveryApiSettings.OutputCacheSettings

    Typed configuration options for output caching of the Delivery API.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Configuration.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public class OutputCacheSettings

    Properties

    View Source

    ContentDuration

    Gets or sets a value indicating how long the Content Delivery API output should be cached.

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

    Cache lifetime.

    Remarks

    The default cache duration is one minute, if this configuration value is not provided.

    View Source

    Enabled

    Gets or sets a value indicating whether the Delivery API output should be cached.

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

    true if the Delivery API output should be cached; otherwise, false.

    Remarks

    The default value is false.

    View Source

    MediaDuration

    Gets or sets a value indicating how long the Media Delivery API output should be cached.

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

    Cache lifetime.

    Remarks

    The default cache duration is one minute, if this configuration value is not provided.

    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • ContentDuration
      • Enabled
      • MediaDuration
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX