caching problem

From: Date: Wed, 27 Feb 2002 20:19:14 +0000
Subject: caching problem
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2871@lists.php.net to get a copy of this message
Hi, I know this problem was discussed on this list, but I still dont understand how the cache is working in smarty. This code dosent work! Why? $smarty = new Smarty; $smarty->caching=true; $smarty->compile_check = true; $smarty->debugging = false; $tpl ="index.tpl"; if(!$smarty->is_cached($tpl,$REQUEST_URI)){ do some db calls } $smarty->display($tpl,$REQUEST_URI);

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