我想为Magento 2.15 cms页面后端禁用缓存

时间:2017-12-18 13:31:29

标签: magento2

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>

仍然无法禁用缓存。

谢谢

1 个答案:

答案 0 :(得分:0)

我需要经常更新CMS页面,因此我想禁用该特定页面的缓存。我尝试使用以下代码在cms页面“Layout Update XML”中使用xml。

   <block class="Magento\Cms\Block\Page" name="cms_page" cacheable="false"/>