{nocache}

From: Date: Thu, 23 Jan 2003 21:20:23 +0000
Subject: {nocache}
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7319@lists.php.net to get a copy of this message
I have a header that is being added to some pages using the {include} tags. Inside this header is just a search box and graphic. I would like to also include a link to 'view shopping cart' only if the user has items in their cart, and a link to 'login and checkout' if the user hasn't already logged in. The question is, how do I keep that from becoming cached? I was looking forward to... {nocache} {if count($smarty.session.cart.items) > 0} cart link here {/nocache} Right now with either the {php} or regular smarty logic, the content becomes calculated and converted to html after analyzing the cache dir. I am aware of insert but that seems like a lot of trouble for that little bit of code. Anyone have any suggestions? Maybe I'm missing the point of cacheing on this one :)

« previous php.smarty.general (#7319) next »