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

Stop magento from caching a single template file
 
lazzymonk
Guru
 
Avatar
Total Posts:  391
Joined:  2008-04-03
England
 

Anyone know of a way to make megento to never cache the out put from a .phtml file?

i have an element that doesnt show when a user is logged in. im using the following line of code to achieve this.

<?php if(!$this->helper('customer/data')->isLoggedIn()):?>

problem is that this only works if caching is disabled. if it is enabled and i log in as a customer i have to refresh the cache before the element will disappear.

Thanx for any help

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