Class CacheSettings
Represents configuration settings for the Umbraco content and media cache.
Inheritance
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
[UmbracoOptions("Umbraco:CMS:Cache")]
public class CacheSettings
Remarks
This class configures cache seeding behavior and cache entry durations for documents and media items. Cache seeding pre-populates the cache during application startup for improved performance.
Constructors
View SourceCacheSettings()
Declaration
public CacheSettings()
Properties
View SourceContentTypeKeys
Gets or sets a value for the collection of content type ids to always have in the cache.
Declaration
public List<Guid> ContentTypeKeys { get; set; }
Property Value
| Type | Description |
|---|---|
| List<Guid> |
ContentTypeRebuildMode
Gets or sets the mode for rebuilding the database cache when content type structural changes occur.
Declaration
public ContentTypeRebuildMode ContentTypeRebuildMode { get; set; }
Property Value
| Type | Description |
|---|---|
| ContentTypeRebuildMode |
Remarks
Immediate (default) rebuilds immediately during the save. Deferred defers the rebuild to a background task with de-duplication, allowing the save to return faster at the cost of temporarily stale content.
DocumentBreadthFirstSeedCount
Gets or sets a value for the document breadth first seed count.
Declaration
public int DocumentBreadthFirstSeedCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
DocumentSeedBatchSize
Gets or sets a value for the document seed batch size.
Declaration
public int DocumentSeedBatchSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Entry
Gets or sets the cache entry settings for documents and media.
Declaration
public CacheSettings.CacheEntry Entry { get; set; }
Property Value
| Type | Description |
|---|---|
| CacheSettings.CacheEntry |
MediaBreadthFirstSeedCount
Gets or sets a value for the media breadth first seed count.
Declaration
public int MediaBreadthFirstSeedCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
MediaSeedBatchSize
Gets or sets a value for the media seed batch size.
Declaration
public int MediaSeedBatchSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |