Class NuCacheSettings
Typed configuration options for NuCache settings.
Inheritance
Namespace: Umbraco.Cms.Core.Configuration.Models
Assembly: Umbraco.Core.dll
Syntax
[UmbracoOptions("Umbraco:CMS:NuCache")]
public class NuCacheSettings
Constructors
View SourceNuCacheSettings()
Declaration
public NuCacheSettings()
Properties
View SourceContentTypeRebuildDeleteBatchSize
Gets or sets the number of content items whose stale NuCache rows are deleted per batch during a content type structural rebuild.
Declaration
public int ContentTypeRebuildDeleteBatchSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Remarks
Deleting in batches avoids a single unbounded DELETE that can escalate to a table lock, bloat the
transaction log, or exceed the command timeout on sites with a lot of content. The matching node ids
are read from the source tables once, then their rows are deleted in batches of this size, so the
value only bounds the per-statement (and, for a deferred rebuild, per-transaction) footprint — it
does not cause repeated scans. The effective size is capped at the SQL parameter limit
(MaxParameterCount); lower it if brief lock escalation on
cmsContentNu during a rebuild is a concern.
NuCacheSerializerType
The serializer type that nucache uses to persist documents in the database.
Declaration
public NuCacheSerializerType NuCacheSerializerType { get; set; }
Property Value
| Type | Description |
|---|---|
| NuCacheSerializerType |
SqlPageSize
The paging size to use for nucache SQL queries.
Declaration
public int SqlPageSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
UsePagedSqlQuery
Gets or sets a value indicating whether to use paged SQL queries for nucache.
Declaration
public bool UsePagedSqlQuery { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |