Cache Policy for WCS OOTB Commands

Posted by Hariharan Vadivelu on
If you have been wondering why you do not see any entries in the cachespec.xml file in your WCS 7 toolkit, you got to take a look at the InitializationServlet.war file, this is located under workspace\WC\InitializationServlet.war.

This web archive consists of a cachespec.xml file with all of the out of the box cacheable commands.

Some of the key out of the box cache components are
MemberGroupCacheCmd - This creates a cache entry of all applicable members for a logged in user.

    <cache-entry>
        <class>command</class>
        <sharing-policy>not-shared</sharing-policy>
        <name>com.ibm.commerce.dynacache.commands.MemberGroupsCacheCmdImpl</name>
....
....
   </cache-entry>

UserRoleCacheCmd - This creates a cache entry for all applicable user roles for a logged in user.

    <cache-entry>
        <class>command</class>
        <sharing-policy>not-shared</sharing-policy>
        <name>com.ibm.commerce.usermanagement.commands.UserRoleCacheCmdImpl</name>
       ...
       ...
  </cache-entry>


2 comments: