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 SourceOutputCacheSettings()
Declaration
public OutputCacheSettings()
Properties
View SourceContentDuration
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.
Enabled
Gets or sets a value indicating whether website output caching is enabled.
Declaration
public bool Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
Remarks
The default value is false.