Performance issue related to caching of Commerce Terms


Description

When refreshing the main page of Pricing and Promotions Manager, Commerce Terms are retrieved without using the cache, which leads to performance degradation.

Solution

To resolve the issue, consider the following option:

  1. Add a cache policy entry for management caches to the environment .json file:

    {
      "@odata.type":"Sitecore.Commerce.Plugin.Management.ManagementCachePolicy,Sitecore.Commerce.Plugin.Management",
      "AllowCaching": true,
      "Expiration": 3600000
    },
  2. Perform a bootstrap again, as described in the deployment guide. This sets expiration to 1 hour so the items will be requested less often.