Re: [SMARTY] using fetch with caching

From: Date: Wed, 06 Apr 2005 07:51:52 +0000
Subject: Re: [SMARTY] using fetch with caching
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12414@lists.php.net to get a copy of this message
On Tue, Apr 05, 2005 at 02:54:52PM -0700, Shane wrote: > Hello, > > I am using Smarty 2.6.8-Debian and am having some trouble > with caching. I have smarty->caching = 2 in the > initialisation routines of my program and set > smarty->caching = false when I need to display a template > without caching. > > I have a user registration script which I set caching = > false and then use smarty->fetch to get a template I use > for an email message. It seems however that this template > is being cached regardless. IE. users were getting emails > which belonged to others. The only way I found to fix it > was to disable smarty's caching site wide. > > Does smarty->fetch honour the caching setting or is there > another I should be setting? it does honor it. maybe you are using a different instance (or copy) of $smarty for email, that still has caching enabled? greetings messju > Best regards, > Shane > > -- > Shane Wegner > http://www.cm.nu/~shane/ > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

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