Enabling or disabling caching of individual parts of the Content Delivery embedded cache
In the application.properties files of your microservices, you can enable or disable caching for specific parts of your embedded cache on the server.
About this task
By default, each part of your cache takes its configuration from the cache.enabled and cache.defaults.enabled properties.
But if you specify a cache.content.CACHENAME.enabled property, where CACHENAME is the name of one specific part of your cache, then the value of that property overrides the cache.defaults.enabled value.
BinaryComponentBinaryContentBinaryVariantComponentComponentPresentationComponentPresentationContentContentJsonByPathContentParsedJsonContentRawJsonCustomMetaPagePublicationSchemaTaxonomyTaxonomyKeywordsTaxonomyListTemplateEvictionBlocks
The EvictionBlocks cache is used by the Content Deployer to trigger flushes to various other parts of the cache. So if you have at least one cache enabled, then this cache should be enabled too.
If caching is enabled (or disabled) in application.properties for a specific part of the cache, caching must also be enabled (or disabled) for the corresponding item type (or for all item types) in cd_storage_conf.xml.
Procedure
- Decide which parts of the cache you want to disable caching for, and which you want to enable caching for.
- Open the application.properties file of the Content Deployer for editing.
- Configure the most common property value in the
cache.defaults.enabledproperty. For example, if you want most parts of your cache to have caching enabled, add the property-value paircache.defaults.enabled=true. - Configure the exceptions to this value in one or more
cache.content.CACHENAME.enabledproperties. For example, if you want the cache of pages to be disabled, add the property-value paircache.content.Page.enabled=false. This value overrides the value in the previous step, but only for pages. - Save and close application.properties.
- Make the same changes in the application.properties file of the Content Service.