caching, is_cached
| From: | Andreas Otterstein | Date: | Fri, 22 Apr 2005 08:01:19 +0000 |
| Subject: | caching, is_cached | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-12536@lists.php.net to get a copy of this message | ||
Hi,
i have some problems with fetch and caching.
// caching-id
$c_id = 'Cat'.$_GET['id'].'-Page'.$_GET['page'];
$tpl->caching = true;
if(!$tpl->is_cached('foo.tpl',$c_id)) {
//make DB and other
}
$tpl->assign('content',$tpl->fetch('foo.tpl',$c_id));
but the problem is that one $c_id will be created but no next one.
i meant one caching file, other $c_id will be ignored..
Whats wrong?
Best wishes,
Andreas