Magento 2 Caching is essential for improving page load speed. You might even face issues while customizing the dynamic content output.
Depending on your business needs, you can even disable cache for specific blocks.
In such a manner, you can disable cache for block using XML in Magento 2. For instance, it may happen a block may work differently for mobile and desktop. The users should be able to clearly identify the difference when accessed from mobile and desktop. This can be made possible only when disabled to fetch the value from the cached version.
For more information, you need to refer the article at: https://meetanshi.com/blog/disable-cache-for-block-using-xml-in-magento-2/
No comments:
Write comments