Skip to main content

Disable the cache size limit


How to disable the cache size limits for the Sitecore Content Delivery and Content Management server roles.

Applies to

Content Delivery, Content Management


Monitor memory usage closely if you choose to disable cache size limits. If cache memory usage exceeds available memory, the application will crash and throw an OutOfMemoryException exception.

To disable all cache size limits and allow Sitecore to take advantage of any available memory:

  • Create a patch file and set the Caching.DisableCacheSizeLimits to true as in the following example:

    <configuration xmlns:patch="" 
    xmlns:set="" xmlns:role="">
                <setting name="Caching.DisableCacheSizeLimits" set:value="true"/>