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.

Procedure

  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 9.1.13.0 or laterNote: This information only applies to versions prior to HCL Commerce version 9.1.13.0. For HCL Commerce version 9.1.13.0 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/