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

问题描述 投票:0回答:1
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>

我还是无法禁用缓存。

谢谢

magento2
1个回答
0
投票

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

   <block class="Magento\Cms\Block\Page" name="cms_page" cacheable="false"/>
© www.soinside.com 2019 - 2024. All rights reserved.