How do I include a dynamic block in the product page with full page caching turned on?

前端 未结 4 1204
闹比i
闹比i 2020-12-12 09:32

We would like to add a dynamic block to the product page. The problem is that the product page has full page caching (and we cannot turn that off due to speed issues). We

4条回答
  •  感动是毒
    2020-12-12 10:27

    There is no need to:

      $info['current_product_id'] = Mage::registry('current_product')->getId();
    

    You can use this method:

    $this->_getProductId()
    

    implemented in Enterprise_PageCache_Model_Container_Abstract

提交回复
热议问题