Re: [SMARTY] Caching compiled non-file templates
Marcus Bointon <[email protected]>
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
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 [email protected] | http://www.synchromedia.co.uk -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php