Re: [SMARTY] Caching compiled non-file templates

From: Date: Fri, 09 Sep 2005 00:15:49 +0000
Subject: Re: [SMARTY] Caching compiled non-file templates
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13020@lists.php.net to get a copy of this message
On 9 Sep 2005, at 00:47, boots wrote:
No path? How do you retrieve your templates? No matter -- you don't literally need to store a path and further, the "path" needn't even look like a file path -- you can parse out the name passed to the resource anyway you see fit and from that develop a query to match your db backend.
So smarty is not worried about what the name looks like - as long as I can concoct something that's unique to that template and preferably filename-friendly, smarty will generate local cache files using it.
No -- Smarty exclusively uses the filesystem for compiled templates (and cached template views).
ok, that wasn't clear before.
It sounds like you might need to rethink some of your implementation but I think the benefits would make it worth your while.
Without a doubt - I'd always thought my existing approach was a bit crap - it does work though ;^) Thanks, Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture marcus@synchromedia.co.uk | http://www.synchromedia.co.uk

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