Configure cacheable objects
To configure cacheable objects, update the cachespec.xml file.
Procedure
- Open the cachespec.xml file in the web application archive (WAR) WEB-INF or enterprise bean WEB-INF directory.
- Specify the cache entry for use with servlet or JSP result caching or command caching.
- Specify the cache entry for servlet or JSP result caching and add the following section to the cachespec.xml file.
<cache-entry> <class>servlet</class> <name> name</name> ... </cache-entry>
Where name is the relative web path or servlet mapping of the servlet or JSP file.
- Specify the cache entry for command caching and add the following section to the cachespec.xml file:
<cache-entry> <class>command</class> <name> name</name> ... </cache-entry>
Where name is the complete path to the command class, for example, com.ibm.commerce.dynacache.commands.MemberGroupsCacheCmdImpl.
Note: Remote stores do not support command caching. Specify command cache entries in the cachespec.xml file in the Transaction server Stores.war file.
Related concepts
Full page and fragment caching
Caching strategy
Cache identifiers
Configure the dynamic cache service in cachespec.xml
Dynamic caching