We have installed Varnish v4 on our server to improve the Magento response time (we have installed the Turpentine extension as well to manage varnish). I am currently working on excluding cache for certain blocks however nothing is working for me.
In the before_body_end, I have this code:
<reference name="before_body_end"> <block type="core/template" name="compare.products" template="page/html/compare-products.phtml" /> </reference>
I have modified the turpentine_esi.xml and added the following code which to me seems correct however the block is still being cached:
<default> <reference name="compare.products" type="core/template"> <action method="setEsiOptions"> <params> <access>private</access> </params> <flush_events> <catalog_product_compare_add_product/> <catalog_product_compare_remove_product/> <catalog_product_compare_item_collection_clear/> </flush_events> </action> </reference> <default>
Is someone able to point me in the right direction? I am currently at a loss to why this code is not working.