Update: RE: [SMARTY] Caching bug with Smarty 2.1.1
| From: | Alain Fontaine | Date: | Mon, 03 Jun 2002 11:58:37 +0000 |
| Subject: | Update: RE: [SMARTY] Caching bug with Smarty 2.1.1 | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4512@lists.php.net to get a copy of this message | ||
Strange enough: if I use this code:
<-- snip -->
$cacheID = "scoreboard_" . $MatchID;
if( !$Smarty->is_cached("screen.tpl", $cacheID) )
{
...
}
<-- snip -->
It works correctly ....
-----Message d'origine-----
De : Alain Fontaine [mailto:alain@valain.com]
Envoyé : lundi 3 juin 2002 13:43
À : smarty-general@lists.php.net
Objet : [SMARTY] Caching bug with Smarty 2.1.1
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
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php