Caching problem with templates from database

From: Date: Wed, 20 Nov 2002 05:04:53 +0000
Subject: Caching problem with templates from database
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6479@lists.php.net to get a copy of this message
I have caching on, but I'm having a problem with caching for templates stored in a database. I'm calling the templates using something like this: $smarty->display("db:index.tpl"); Under windows, the cache file is created but since Windows doesn't let ':' be in the file name, PHP or Smarty renames it to db%3Aindex.tpl .. I suspect this is the root of the problem. Doing a $smarty->is_cached("db:index.tpl") will always be false, thus Smarty never outputs the cache file. I have tested this under Linux too, and the same problem exists. I have no idea what the cache file is named because of an issue with my ftp client (I can't see the files). I have also tried displaying a regular template from a file, and it gets cached and Smarty does output the cache file as expected. Any ideas? -kamal

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