我已经使用
在 app/design/frontend/XXX/XXX/layout/local.xml 文件中的 local.xml 中试试这个:
<reference name="block name">
<action method="setEsiOptions">
<params>
<access>private</access>
<flush_events>
<wishlist_item_save_after/>
<wishlist_item_delete_after/>
<sales_quote_save_after/>
</flush_events>
</params>
</action>
</reference>`
或者
<reference name="block name">
<action method="setEsiOptions">
<params>
<access>private</access>
<ttl>0</ttl>
</params>
</action>
</reference>`
或者
<reference name="block name">
<action method="setEsiOptions">
<params>
<access>private</access>
<method>ajax</method>
</params>
</action>
</reference>`
或者
整个页面将忽略缓存,例如。一页模块 checkout_onepage_index
<checkout_onepage_index>
<turpentine_cache_flag value="0"/>
</checkout_onepage_index>
我使用模块 Nexcessnet Turpentine 进行了尝试。它有效
供您在安装松节油后参考:
应用程序/设计/前端/基础/默认/布局/turpentine_esi.xml
非常感谢您的反馈。
参考网站:
http://www.magentocommerce.com/magento-connect/turpentine-varnish-cache.html
https://github.com/nexcess/magento-turpentine
感谢和问候
拉杰什·甘吉尔