Disable the cache size limit
Version: 9.3
Applies to |
Content Delivery, Content Management |
---|
Warning
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
totrue
as in the following example:RequestResponse<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/" xmlns:role="http://www.sitecore.net/xmlconfig/role/"> <sitecore> <settings> <setting name="Caching.DisableCacheSizeLimits" set:value="true"/> </settings> </sitecore> </configuration>