Administer > Dynamic caching > Improve marketing performance using caching
Commands and methods for generating a cache key
A guide to each method used to generate the cache key. Fewer methods in the cache key will result in fewer system resources required to cache the commands.
Methods used to develop a cache key
For rules on which methods should be included as part of the cache ID see the comments at the top of cachespec.xml located in one of the directories below:
- WCDE_INSTALL\samples\dynacache\marketing\
- WC_INSTALL\samples\dynacache\marketing\
Method Definition getCacheKey The unique identifier of the business object. It can be a category ID, a catalog entry ID, or a marketing content ID getStoreId The unique identifier of the store in which the activity is running getLanguageId The ID of the language in which to display the result to the customer getActivityId The unique ID of the activity which returned this business object. This will be used in the ClickInfo URL getCatalogId The unique ID of the current catalog getContracts The unique IDs of the contracts to which the customer is entitled. This is required when there are contracts that entitle specific products, or give specific pricing to customers. The catalog web services will only return entitled categories and products, and the associated product contract pricing, so we need to know that the customer is entitled to this business object, and that we are displaying the correct prices getActiveOrg The unique ID of the organization to which the customer is currently associated. This is required when there are contracts that are entitled to specific organizations getMemberGroups The unique IDs of the member groups to which the customer explicitly belongs. This is required when there are contracts that are entitled to specific member groups getExperimentId The unique ID of the experiment which returned this business object. This will be used in the ClickInfo URL getTestElementId The unique ID of the experiment test element which returned this business object. This will be used in the ClickInfo URL
Related concepts
Data recording; improving runtime performance
Marketing business object cache overview
Related tasks
Set up command caching for marketing
Tune the marketing business object cache