Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Solved: Block-Caching Problem of ChildHtml in Catalog/Product/View.phtml
 
CrazyWolf
Jr. Member
 
Total Posts:  3
Joined:  2009-08-31
 

Hi,

i have a Module in the Product View Template, which differences guests and logged in users.

In the view.phtml Template is this code:

<?php echo $this->getChildHtml('after-shop-right-box'false); ?>

in the module layout.xml is this code:

<catalog_product_view>
        <
reference name="product.info">
            <
block type="productoffer/productoffer" name="productoffer" as="after-shop-right-box" template="productoffer/productoffer.phtml" />
        </
reference>
    </
catalog_product_view>

but it is cached on the first state. If guest user visits the page first, logged in users get the guest info.
I thought the false parameter in the ChildHtml function is to disable caching a block, but here its not working.

Does anyone know why and how to solve it?

Thanks and Greetings,
Andreas

Edit: Solved, Another developer added a Cache on Product View, after disabling this it works.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top