https://devdocs.magento.com/guides/v2.4/extension-dev-guide/cache/page-caching/public-content.html
接手的M2项目比较慢,尝试使用Varnish的过程中,配置正确,却感觉不出有速度的提升。
经排查,发现default.xml中,被前面的加搞了个cacheable=“false”
<block class="Magento\Theme\Block\Html\Footer" name="copyright1" template="Magento_Theme::html/copyright.phtml" cacheable="false"/>
把cacheable="false"去掉,更新缓存,速度明显快了。