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.
The information in this topic is specific to the Product List rendering.
To configure the Product List cache:
-
In the Content Editor, navigate to /sitecore/Content/<tenant>/<site>/Settings/Commerce/Product List Cache Configuration.
-
In the Caching section, select the Enabled check box to implement product list caching on the storefront site.
-
In the Size field, define the maximum cache size in megabytes. Changes to this value take effect only after you restart the server.
-
In the Duration field, define how long cache entries are kept before they expire (in seconds).
NoteInventory 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.
-
Re-publish the Product List Cache Configuration item so that the change is picked up by the CD servers.
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].