Caching compiled non-file templates

From: Date: Thu, 08 Sep 2005 22:44:37 +0000
Subject: Caching compiled non-file templates
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13014@lists.php.net to get a copy of this message
A whole load of my templates are stored in a DB as part of a mailing list management system. At present it's compiling the templates every time they are used as there is no particular identifier (like a file has a name) that smarty gets hold of to associate with a particular template (unless it creates a hash from each one). The resulting compiled and parsed output is used and then discarded - no files are involved at any point. This is wildly inefficient - any suggestions as to how I might make Smarty deal with this better and which bits of Smarty I should hack about with?? Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture marcus@synchromedia.co.uk | http://www.synchromedia.co.uk

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