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
- Review the following document to understand the methods used to generate a key:
-
Open the sample cache configuration file
cachespec.xmlin the following directory:- WCDE_installdir/samples/dynacache/marketing/
Note: 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.
- WCDE_installdir/samples/dynacache/marketing/
-
Copy all the cache entries from the sample cache configuration file to the
cachespec.xmlfile found in the following directory:- workspace_dir/Stores/WebContent/WEB-INF/