Configure the Product List cache

When a customer browses categories or performs a product search, the GetProductList API is used to retrieve and cache information. Cache settings are saved for each storefront site. By default, product list caching is disabled but to improve performance and decrease requests to the Commerce Engine, you can enable product list caching.

Note

The information in this topic is specific to the Product List rendering. If you are using the Commerce Search Results rendering, see Choosing between available renderings for product lists.

To configure the Product List cache:

  1. In the Content Editor, navigate to /sitecore/Content/<tenant>/<site>/Settings/Commerce/Product List Cache Configuration.

    Shows the Product List Cache Configuration dialog.
  2. In the Caching section, select the Enabled check box to implement product list caching on the storefront site.

  3. In the Size field, define the maximum cache size in megabytes. Changes to this value take effect only after you restart the server.

  4. In the Duration field, define how long cache entries are kept before they expire (in seconds).

    Note

    Inventory count and product prices are also cached. If inventory numbers or product prices change within the defined duration time, this may affect the customer experience.

  5. Re-publish the Product List Cache Configuration item so that the change is picked up by the CD servers.

Note

To clear all Product List caches, use the /sitecore/admin/cache.aspx page. To see details of the Product List cache, see the <sitename>[ProductList].