Basic Cache question
| From: | Maximillian Schwanekamp | Date: | Wed, 02 Feb 2005 23:29:45 +0000 |
| Subject: | Basic Cache question | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-12222@lists.php.net to get a copy of this message | ||
Hello! This is my first question to the list, so go easy on me, please?
What is the best way to include non-cached content in a cached template? E.g. I have pagewrapper.tpl.html, which has the head, navigation elements and footer. Within that, I have {$content}. $content is generated from php with database info, etc depending on get/post/server variables.
Right now I have caching disabled, but the "wrapper" changes infrequently. What is the best way to have that wrapper get cached while still allowing the non-cached data in $content?
--
Maximillian Von Schwanekamp
http://www.neptunewebworks.com/