Documentation Center

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

  1. Open cd_storage_conf.xml Storage Layer configuration file in a plain-text or XML editor.
  2. To exclude specific types of files from caching, insert the following element inside your ItemTypes element:
    <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).

  3. To exclude specific types of items, such as Pages or Taxonomies, from caching, insert the following inside your ItemTypes element:
    <Item typeMapping="ITEMTYPE" cached="false"/>

    where ITEMTYPE identifies 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 Metadata and Query (for Content Broker queries: this cache is automatically flushed whenever anything is published, so there is no chance of inconsistency).

  4. To exclude all items in a specific Publication from caching, create a Publication element inside your ItemTypes element with its Id attribute set to the Publication ID of the Publication you want to exclude (if you have not already created such a Publication element), and set its cached attribute to false. SDL recommends swithcing off caching for Publications that you rarely update, such as a BluePrint root Publication.
  5. 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 Publication element in your ItemTypes element:
    <Item typeMapping="ITEMTYPE" cached="false"/>

    where ITEMTYPE identifies the type of content item in this Publication that you do not want to cache.

  6. Save and close cd_storage_conf.xml.