possible bug in 2.6.0-RC1
| From: | Marshall Sorenson | Date: | Wed, 17 Sep 2003 15:05:40 +0000 |
| Subject: | possible bug in 2.6.0-RC1 | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10230@lists.php.net to get a copy of this message | ||
Hello,
I think I may have found a bug in 2.6.0-RC1 (possibly previous versions?).
Calling is_cached() prior to a successful clear_cache() causes display() to
NOT write a cache file.
$smarty = new Smarty;
$smarty->template_dir = 'tpls';
$smarty->caching = 2;
// Clears and writes new cache file every time
$smarty->clear_cache('test.tpl', 'foo|bar');
$smarty->display('test.tpl', 'foo|bar');
// Clears cache file if one exists, but does not write new cache file.
// Writes new cache file if one did not exist prior to request.
$smarty->is_cached('test.tpl', 'foo|bar');
$smarty->clear_cache('test.tpl', 'foo|bar');
$smarty->display('test.tpl', 'foo|bar');
Can someone else maybe verify this and let me know if maybe it is something
I am doing wrong?
Thanks,
Marshall