Magento 2 : disable cache for static block
-
19-03-2021 - |
سؤال
In Magento, I can disable cache for static block by add cache_lifetime="null".
{{block type="core/template" cache_lifetime="null" title="BEST SELER!!!" sku="ASS030530010" template="catalog/product/menuproduct.phtml"}}
How can I disable cache for static block on Magento 2?
المحلول
You can use this
{{block type="core/template" cacheable="false" title="BEST SELER!!!" sku="ASS030530010" template="catalog/product/menuproduct.phtml"}}
Hope this will help you!
لا تنتمي إلى magento.stackexchange