Table of Contents

Class ReadOnlyModeVariantCacheOptions

Namespace
CMS.Base
Assembly
CMS.Base.dll

Configures the local content item asset variant cache into which asset variants are generated while the application runs in read-only mode.

public sealed class ReadOnlyModeVariantCacheOptions
Inheritance
object
ReadOnlyModeVariantCacheOptions
Extension Methods

Constructors

ReadOnlyModeVariantCacheOptions()

public ReadOnlyModeVariantCacheOptions()

Properties

CleanupInterval

Interval between cache size checks. Must be between 1 second and 30 days. The default value is 5 minutes.

public TimeSpan CleanupInterval { get; set; }

Property Value

TimeSpan

MinimumFileAgeForEviction

Minimum age of a file to be eligible for eviction. Serving a file from the cache refreshes its age, which prevents eviction of files that are likely still being served. Must be at most 30 days. The default value is 5 minutes.

public TimeSpan MinimumFileAgeForEviction { get; set; }

Property Value

TimeSpan

SizeLimit

The size limit of the variant cache in bytes. When the limit is exceeded, the oldest files are evicted. Files younger than MinimumFileAgeForEviction are evicted only when no older file is left to bring the cache under the limit. The default value is 1 GB.

public long SizeLimit { get; set; }

Property Value

long