You can override the default storage medium or caching behavior for all Component Presentations of a certain file type (that is, Component Presentations with specific file extensions) by inserting an Item element inside the ItemTypes element.
Procedure
- In the configuration directory of the Role, open
cd_storage_conf.xml for editing.
- Inside the
ItemTypes element, insert the following Item child element:
<Item typeMapping="ComponentPresentation" itemExtension="EXT" cached="CACHE_BEHAVIOR" storageId="STORAGE_ID" />
where
EXT is a file extension
- 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.
EXT must be one of the following:
.Jsp
.Ascx
.Xml
.Txt
.rel
- Repeat these steps as needed in order to configure separate storage behavior for other Component Presentation file types.
- Save and close
cd_storage_conf.xml.