Speed up system response on Product Listing and Product Details

A global configuration setting can be used to skip loading certain information from the product type data, which can significantly reduce the amount of data returned and speed up system response on Product Listing and Product Details.

Set the global client-configuration endpoint setting skipLoadingProductTypes flag set to true to skip loading and using variant information and SKU properties from the product type data. To enable this flag, invoke this admin endpoint:

PUT /ccadmin/v1/merchant/clientConfiguration
with
{ 
"skipLoadingProductTypes":true 
}
When skipLoadingProductTypes is set to true, Commerce will skip loading all the productTypes on page endpoint response.

Note: If skipLoadingProductTypes is set to true, the productTypesRequired query parameter will be set to false in page calls.

Skip retrieving Parent Category information from related products

A global configuration setting can be used to skip retrieving Parent Category information from related products when not needed. This can significantly reduce the amount of data returned and speed up system response on Product Listing and Product Details. Note that the parent category information will be retrieved along with product information when shopper selects to view a related product.

Set the global client-configuration endpoint settings optimizeRelatedProductsForPageEndpoint and optimizeRelatedProductsForListProductsEndpoint flags to true, to skip retrieving Parent Category information from related products. This flag is set to false by default. To enable this flag, invoke this admin endpoint:

/ccadminui/v1/merchant/cloudConfiguration
with
{ 
"optimizeRelatedProductsForPageEndpoint": true 
"optimizeRelatedProductsForListProductsEndpoint": true
}

When set to true, optimizeRelatedProductsForPageEndpoint removes parentCategories, parentCategory, parentCategoryIdPath from Product Details page endpoint and optimizeRelatedProductsForListProductsEndpoint removes parentCategories, parentCategory, parentCategoryIdPath from Product Listing page endpoints, that is, the listProducts and listProductsForLargeCart endpoints.

Clear JSONStoreCache to reflect it in storefront.