Magento Hole puch与清漆

Raj*_*jir 3 magento varnish hole-punching

我最近在系统(ubuntu)中安装了清漆3.x并将其配置为8080.

现在启用了整页缓存,其工作正常.我只是想忽略页面的一些特定动态块.我怎么能用magento做.此外,我没有使用Magentos默认缓存技术,所以我禁用它.还试过模块Terpentine

谢谢和注意

Rajesh Ganjeer

Raj*_*jir 6

我这样做了

在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>`
Run Code Online (Sandbox Code Playgroud)

要么

<reference name="block name">
    <action method="setEsiOptions">
        <params>
            <access>private</access>
            <ttl>0</ttl>
        </params>
    </action>
</reference>`
Run Code Online (Sandbox Code Playgroud)

要么

<reference name="block name">
<action method="setEsiOptions">
    <params>
        <access>private</access>
        <method>ajax</method>
    </params>
</action>
</reference>`
Run Code Online (Sandbox Code Playgroud)

要么

整个页面将忽略缓存,例如.一页模块checkout_onepage_index

<checkout_onepage_index>
    <turpentine_cache_flag value="0"/>
</checkout_onepage_index>
Run Code Online (Sandbox Code Playgroud)

我尝试使用模块Nexcessnet Turpentine.它的工作原理

在Turpentine安装后供您参考:

应用程序/设计/前端/碱/默认/布局/ turpentine_esi.xml

非常感谢您的反馈.

参考站点:

http://www.magentocommerce.com/magento-connect/turpentine-varnish-cache.html

https://github.com/nexcess/magento-turpentine

感谢和问候

Rajesh Ganjeer