Magento孔配清漆 [英] Magento Hole puch With Varnish
问题描述
我最近在系统(ubuntu)中安装了清漆3.x,并将其配置为8080.
I recently installed the varnish 3.x in system (ubuntu) and configured it to 8080.
现在启用了全页缓存,并且可以正常工作.我只是想忽略一些 页面的特定动态块.我该怎么办magento.我也不是 使用Magentos默认的缓存技术,所以我禁用了它.还尝试了模块Terpentine
Now full page caching is enabled and its working fine. I just want to ignore some specific dynamic blocks of the page. How can i do with magento. Also i am not using Magentos default caching techniques so i disabled it. also tried module Terpentine
感谢&问候
Rajesh Ganjeer
Rajesh Ganjeer
推荐答案
我已经使用
在app/design/frontend/XXX/XXX/layout/local.xml文件中的local.xml中尝试此操作:
Try this in local.xml inside the app/design/frontend/XXX/XXX/layout/local.xml file:
<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>`
OR
<reference name="block name">
<action method="setEsiOptions">
<params>
<access>private</access>
<ttl>0</ttl>
</params>
</action>
</reference>`
OR
<reference name="block name">
<action method="setEsiOptions">
<params>
<access>private</access>
<method>ajax</method>
</params>
</action>
</reference>`
OR
整个页面将忽略缓存的内容,例如一页模块checkout_onepage_index
Whole page will ignore cached eg. one page module checkout_onepage_index
<checkout_onepage_index>
<turpentine_cache_flag value="0"/>
</checkout_onepage_index>
我使用模块Nexcessnet Turpentine尝试了此操作.而且有效
I tried this using module Nexcessnet Turpentine. and it works
在Turpentine安装后供您参考:
app/design/frontend/base/default/layout/turpentine_esi.xml
app/design/frontend/base/default/layout/turpentine_esi.xml
非常感谢您的反馈.
参考站点:
http://www.magentocommerce.com/magento-connect/turpentine-varnish-cache .html
https://github.com/nexcess/magento-turpentine
感谢&问候
Rajesh Ganjeer
Rajesh Ganjeer
这篇关于Magento孔配清漆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!