In this post I am going to explain how to disable caching for CMS page from backend in magento 2.
If you need to update the CMS page often hence if you want to disable the cache for that particular page, then add below code snippet in cms page “Layout Update XML”.
1 2 3 | <referenceContainer name="content"> <block class="Magento\Cms\Block\Page" name="cms_page" cacheable="false"/> </referenceContainer> |
Thats it. Enjoy Magento 2!!
Write an article about ecommerce that help people to grow their ecommerce business. You’ll find best ecommerce guide, news, tips & more!
Leave a Reply