2022 Developer Survey is open! Take survey.

New answers tagged

3 votes
Accepted

Is there any way to disable cache for frontend price block

Setting cacheable=false to blocks which are part of a page rendering is not a good idea as the whole page will be rendered as uncached. See official documentation: Do not configure content pages (i.e....
user avatar
  • 96
-1 votes

Is there any way to disable cache for frontend price block

Copy 'catalog_product_prices.xml' from vendor/magento/module-catalog/view/base/layout/catalog_product_prices.xml into your theme app/design/frontend/vendor/themename/Magento_Catalog/layout/...
user avatar
-1 votes

Is there any way to disable cache for frontend price block

You can disable cache using XML. Please follow the below steps: open catalog_product_prices.xml. Replace the code below: From: <block class="Magento\Framework\Pricing\Render\RendererPool&...
user avatar

Top 50 recent answers are included