Command caching for marketing
The most resource-intensive part of evaluating a marketing rule is processing the query to return the Service Data Object (SDO) business object. The SDO business object for categories, catalog entries, and marketing content displays in an e-Marketing Spot. Command caching stores the results of earlier queries in cache to take advantage of lower retrieval times in comparison to retrieving results from main storage.
cachespec.xml can be found in the following location: - 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.Display Promotion action
If you are using the Display Promotion action,
then you must update the cachespec.xml to use the command com.ibm.commerce.marketing.commands.marketingspot.RetrieveContentTaskCmdImpl instead of
the command com.ibm.commerce.marketing.commands.marketingspot.FilterContentTaskCmdImpl. If you are
not using the Display Promotion action, then you can use the FilterContentTaskCmdImpl command.
Cache entry verification
To verify that cache is receiving data properly check the cache entries in the cache monitor.
| Template | Cache ID | Timeout | Dependency ID |
|---|---|---|---|
| com.ibm.commerce.marketing.commands.marketingspot.FilterContentTaskCmdImpl | com.ibm.commerce.marketing.commands.marketingspot.FilterContentTaskCmdImpl: getCacheKey=10201:getStoreId=10101: getLanguageId=1:getActivityId=11500: getCatalogId=10101:getContracts=11001: getActiveOrg=2000: getExperimentId=:getTestElementId= | 10800 | dialogMarketingCommand activityId:11500 contentId:10201 |