Magento 2 : disable cache for static block
-
19-03-2021 - |
Frage
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?
Lösung
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!
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit magento.stackexchange