Tip: Caching Templates from the db
| From: | Donncha O Caoimh | Date: | Wed, 16 Jul 2003 10:40:36 +0000 |
| Subject: | Tip: Caching Templates from the db | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9900@lists.php.net to get a copy of this message | ||
I'm doing work on Word Press (http://wordpress.org) and as part of that I'm
looking at using MySQL to store Smarty templates.
I followed the docs on the site and decided that I wanted to cache the output,
but I didn't want to interogate the db on every request. I used a flag on the
local filesystem instead. That caused me some problems as I've explained
below. Hopefully someone else will find this simple example useful!
http://blogs.linux.ie/xeer/archives/p/89490479/more/1/c/1
Donncha.