Closed wbdv closed 13 years ago
Hello wbdv,
I tested your function on a completely fresh magento installation, and all I get it a white page (which might be because of nginx or magento), but that indicates that the code does not work. Im just guessing here, but could it be ' $compare = Mage::helper('catalog/product_compare')->getItemCount();' that does not work because it's a fresh installation?
@wbdv, thanks for the patch, it was pushed to github. @dtremolo, try to update the repo and see if this time is working.
For all of you who we're using modman update the extension running: modman magneto-varnish update
Works like a charm.
Cached page is show even If a product is added to compare. To fix that, you need to add a function in Helper/Cacheable.php like
then in Model/Observer.php change line 32 in