Enable cache key indexing
Version: 10.4
Applies to |
Content Delivery, Content Management |
---|
Cache key indexing can significantly reduce the time it takes to perform operations on a large cache, and is particularly useful in large solutions where items are frequently renamed, moved, copied, and deleted. Cache key indexing is available for the following caches:
-
Access Result cache
-
Item cache
-
Item paths cache
-
Paths cache
To enable cache key indexing:
-
Create a patch file and set all cache key indexing settings to
true
as shown. The following example enables cache key indexing on the Content Delivery and Standalone roles only:RequestResponse<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/"> <sitecore> <settings> <setting name="Caching.CacheKeyIndexingEnabled.AccessResultCache" set:value="true"/> <setting name="Caching.CacheKeyIndexingEnabled.ItemCache" set:value="true"/> <setting name="Caching.CacheKeyIndexingEnabled.ItemPathsCache" set:value="true"/> <setting name="Caching.CacheKeyIndexingEnabled.PathCache" set:value="true"/> </settings> </sitecore> </configuration>