Set up command caching for catalog filter

If the site uses catalog filters, we can set up command caching for catalog filter to help improve site performance.

Cacheable commands can eliminate much of the processor usage associated with running redundant database queries. Command Caching eliminates this usage by storing the results from earlier queries in a cache. With the WebSphere Commerce search feature enabled, catalog filter commands can compose search expressions to perform entitlement for users under different trading agreements. By adding command caching for catalog filters, the filtering search expression can be retrieved from the cache entry instead of from the database. This cache entry retrieval can improve response time and reduce system load.


Before beginning

Ensure that we are familiar with and understand the methods used to generate a key that is described in the following topic:


Task info

When you set up caching for catalog filter, we can add cache entries for the following catalog filter-related commands:


Procedure

  1. Open the sample cache configuration file cachespec.xml in the following directory:

  2. Copy all the cache entries from this sample cache configuration file.

  3. Open the cachespec.xml file that is found in the following directory:

  4. Paste the cache entries from the sample cache configuration file to this cachespec.xml file.

  5. Save and close the cachespec.xml file.


Related concepts
Dynamic caching


Related reference
Commands and methods for generating a cache key