Disable the cache size limit

Current version: 10.1

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="http://www.sitecore.net/xmlconfig/" 
    xmlns:set="http://www.sitecore.net/xmlconfig/set/" xmlns:role="http://www.sitecore.net/xmlconfig/role/">
                <setting name="Caching.DisableCacheSizeLimits" set:value="true"/>

Do you have some feedback for us?

If you have suggestions for improving this article,