Configure cacheable objects

  1. Open cachespec.xml in the Web application archive (WAR) WEB-INF or enterprise bean WEB-INF directory.

  2. Specify the cache entry for use with servlet or JSP result caching or command caching.

    1. Specify the cache entry for servlet or JSP result caching and add the following section to the cachespec.xml file.

    2. <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
      
      
      

  3. 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.
    
    
    

 

Related tasks


Tutorial: Invalidating cache

 

Related Reference


Caching defaults