Caching bug with Smarty 2.1.1

From: Date: Mon, 03 Jun 2002 11:43:23 +0000
Subject: Caching bug with Smarty 2.1.1
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4510@lists.php.net to get a copy of this message
Hello, I have now upgraded from Smarty 2.0.1 to the latest 2.1.1 version, and there still seems to be a bug in the caching system. A bit of code to explain: <-- snip --> . . if( !$Smarty->is_cached("screen.tpl", $MatchID) ) { // DB calls etc . . } . . $Smarty->Display("screen.tpl", $MatchID); <-- snip --> This works okay, except for the fact that whatever the value of $MatchID, the same cached contents is always returned, instead of different cached content accordingly to the value of $MatchID. It's basically the first cached copy that is always returned, although the other cache files actually -do- exist in the cache_dir! Is this a bug, or is it me doing something wrong? --- Alain Fontaine VAlain sa

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