I need to update the CMS page often hence I want to disable the cache for that particular page. I have tried using xml in cms page "Layout Update XML" with the following code
<head>
<meta http-equiv="Cache-Control" content="no-cache"/>
</head>
仍然无法禁用缓存。
谢谢
答案 0 :(得分:0)
我需要经常更新CMS页面,因此我想禁用该特定页面的缓存。我尝试使用以下代码在cms页面“Layout Update XML”中使用xml。
<block class="Magento\Cms\Block\Page" name="cms_page" cacheable="false"/>