using fetch with caching
| From: | Shane | Date: | Tue, 05 Apr 2005 21:54:52 +0000 |
| Subject: | using fetch with caching | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-12408@lists.php.net to get a copy of this message | ||
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?
Best regards,
Shane
--
Shane Wegner
http://www.cm.nu/~shane/