Configuring storage for items of a certain type
You can override the default storage medium or caching behavior for all items of a certain item type by inserting an Item element inside the ItemTypes element.
Procedure
- In the configuration directory of the Role, open
cd_storage_conf.xmlfor editing. - Inside the
ItemTypeselement, insert the followingItemchild element:<Item typeMapping="TYPE_NAME" cached="CACHE_BEHAVIOR" storageId="STORAGE_ID" />whereTYPE_NAMEis the name of an item type- STORAGE_ID identifies the storage provider to be used for this specific item type.
- CACHE_BEHAVIOR is a Boolean that enables or disables caching on this item type.
TYPE_NAMEmust be one of the following:Value Description BinaryA binary resource ComponentLinkClickInformation about visitors clicking on a Component Link, used in the Communication Statistics product ComponentPresentationA Component Presentation (the result of rendering a Component with a Component Template) ComponentVisitInformation about visitors visiting a Component, used in the Communication Statistics product DynamicLinkInfoThe properties of a dynamic link ExtensionDataRendering instructions related to custom content you add during publishing (if TYPE_NAMEhas this value,STORAGE_IDmust refer to a database, not a file system)MetadataThe metadata of items, including binary variants and link information PageA Page PersonalizationData related to Personalization & Profiling functionality PublicationA Publication QueryA Query used for Intelligent Navigation TaxonomyA Taxonomy TimeframeA Timeframe, as used in Personalization & Profiling TrackedPageA Tracked Page, as used in Personalization & Profiling XSLTAn Dynamic Template containing an XSLT stylesheet - Repeat these steps as needed in order to configure separate storage behavior for other item types.
- Save and close
cd_storage_conf.xml.