Configure Item and Data cache values
Abstract
How to configure the Item and Data cache values for the Sitecore Content Delivery and Content Management server roles.
Applies to | Content Delivery, Content Management |
---|
To configure Item and Data cache values:
Create a patch file for cache size values. For example,
custom.caching.config
.Use rule-based configuration to target different environments. The following example sets custom Web database cache values for Content Delivery, and Master database cache values for Content Management:
<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> <databases> <database id="web" role:require="ContentDelivery or Standalone"> <cacheSizes> <data>1000MB</data> <items>1000MB</items> </cacheSizes> </database> <database id="master" role:require="Standalone or ContentManagement"> <cacheSizes> <data>1000MB</data> <items>1000MB</items> </cacheSizes> </database> </databases> </sitecore> </configuration>
Deploy your configuration file to the
<root>/App_Config/Includes
folder. You can check your changes by visiting/sitecore/admin/showconfig.aspx
and searching forpatch:source="custom.caching.config"
.