magento-turpentine
magento-turpentine copied to clipboard
Wishlist button caching problem
I have a problem with a hole punch for wishlist button. That's how button is being added to catalog/product/search pages:
<block type="core/template" name="addto_wishlist" template="catalog/product/wishlist.phtml"/>
This is how i'm setting up a hole punch
<default>
<reference name="addto_wishlist">
<action method="setEsiOptions">
<params>
<access>private</access>
<flush_events>
<wishlist_item_save_after/>
<wishlist_item_delete_after/>
<controller_action_layout_render_before_catalogsearch_result_index />
</flush_events>
</params>
</action>
</reference>
</default>
And this is what happens when you use add/remove to wishlist button. At first page visiting button becomes cached and after page reloading it stays in the same condition - like we didn't add the product to wishlist (but header icon changes - so header hole is being punched well, but it was set up in the same way). Please see this screencast http://take.ms/gpdOE
I think you should update the <default>
tag to the correct controller_action of the page where you have the wishlist button. Please let me know if it helps
@hmphu unfortunately it didn't help