For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > February 2005 > Basic Cache question









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Basic Cache question
Maximillian Schwanekamp

2005-02-02, 9:01 pm

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/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com