Disabling server-side caching for specific type of files item types or Publication
You can optimize caching by switching caching off for specific types of binary files, for specific item types, or for item types in a specific Publication.
Procedure
- Open cd_storage_conf.xml Storage Layer configuration file in a plain-text or XML editor.
- To exclude specific types of files from caching, insert the following element inside your
ItemTypeselement:<Item typeMapping="Binary" itemExtension=".EXT" cached="false"/>where .EXT is the file extension identifying the type of file you do not want to cache. SDL recommends switching off caching for those types of files that you expect to be very large, such as .iso (a CD-ROM image).
- To exclude specific types of items, such as Pages or Taxonomies, from caching, insert the following inside your
ItemTypeselement:<Item typeMapping="ITEMTYPE" cached="false"/>where
ITEMTYPEidentifies the type of content item you do not want to cache.SDL recommends switching off caching for those types of items that you expect to be very large, such as Taxonomies. Typical item types for which to keep caching enabled are
MetadataandQuery(for Content Broker queries: this cache is automatically flushed whenever anything is published, so there is no chance of inconsistency). - To exclude all items in a specific Publication from caching, create a
Publicationelement inside yourItemTypeselement with itsIdattribute set to the Publication ID of the Publication you want to exclude (if you have not already created such aPublicationelement), and set itscachedattribute tofalse. SDL recommends swithcing off caching for Publications that you rarely update, such as a BluePrint root Publication. - If you do want to cache items in general in a specific Publication, you can still choose to exclude specific types of items in that Publication from caching, by inserting the following inside the
Publicationelement in yourItemTypeselement:<Item typeMapping="ITEMTYPE" cached="false"/>where
ITEMTYPEidentifies the type of content item in this Publication that you do not want to cache. - Save and close cd_storage_conf.xml.