Setting up command caching for marketing

Cacheable commands eliminate much of the processor usage associated with running redundant database queries by storing results from earlier queries in a cache. The marketing services can retrieve data to display in e-Marketing Spots on store pages from the command cache instead of the database. This retrieval improves response time and reduces system load.


  1. Review the following document to understand the methods used to generate a key:
  2. Open the sample cache configuration file cachespec.xml in the following directory:
    • WCDE_installdir/samples/dynacache/marketing/
      HCL Commerce Version or laterNote: This information only applies to versions prior to HCL Commerce version For HCL Commerce version onwards, the marketing command cache rules are relocated to the cachespec.xml file contained within the InitializationServlet.war file used by the transaction server. If the marketing cache rules were introduced previously by manual customization, they should be removed so that the InitializationServlet rules take precedence.
  3. Copy all the cache entries from the sample cache configuration file to the cachespec.xml file found in the following directory:
    • workspace_dir/Stores/WebContent/WEB-INF/