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 SourceContentDuration
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.
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 |
|
Remarks
The default value is false
.
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.