nexcess / magento-turpentine

A Varnish extension for Magento.
GNU General Public License v2.0
520 stars 252 forks source link

Turpentine extension is incompatible with customer group pricing #446

Closed sujithtv closed 9 years ago

sujithtv commented 10 years ago

I am using Turpentine extension 0.5.5 Version with Magento EE 1.13.0.2 . During my analysis i could see that ESI policy for price block is not recognized by the extension. So it is showing cached prices with customer groups.

The price block caching is on both Category page and product page. Can you please let me know is there any way to include ESI policy for price block on both category and product pages?

sujithtv commented 10 years ago

@aheadley Do you have any suggestion on the above case? Please let me know.

aheadley commented 10 years ago

ESI policy for price block

There is no policy for the price block included with Turpentine, did you add one yourself? If so, can you paste it here?

RhodriOwainDavies commented 10 years ago

I'm using Magento EE ver. 1.12.0.2 Nexcessnet_Turpentine 0.5.5

And getting similar problems. Error on Product page: Fatal error: Call to a member function getStockItem() on a non-object in /var/www/app/code/core/Mage/CatalogInventory/Block/Qtyincrements.php on line 72

One thing I learned is that using product/ in the registry_keys (like it says in much of the documentation) doesn't do much, current_product/ is much more effective.

at the moment I'm using XML like this to refer to the parent block:

<catalog_product_view>
  <reference name="content">
        <action method="setEsiOptions">
            <params>
                <method>esi</method>
                <access>private</access>
                <registry_keys>
                    <current_product/>
                </registry_keys>
           </params>
        </action>
    </reference>
</catalog_product_view>

but not much point fetching ALL the content block through ESI - so I am also playing with

....

I'll let you know how I go! Or if you have any pointers, please post!