[htmltmpl] Re: Caching in html-template
Brought to you by:
samtregar
From: Mark S. <ma...@su...> - 2004-09-23 15:33:56
|
On 2004-09-14, =?Windows-1251?B?w+7w/Oro6SDe8Ojp?= <hat...@tu...> wrote: > Hello html-template-users, > > I don't know anything about how html-template caches its templates. > > I'm using file_cache, and I have many templates for different > modules. I have two ways for handling it: > > 1. > > main.tmpl: > > <TMPL_INCLUDE "some_header.html"> > <TMPL_IF _MODULE_MODULE1><TMPL_INCLUDE "modules/module1.tmpl"></TMPL_IF> > <TMPL_IF _MODULE_MODULE2><TMPL_INCLUDE "modules/module2.tmpl"></TMPL_IF> My best understanding is that you only need to cache once, for the "parent" page, and not for the included templates as well. This is because the way the include system works, it's just as if the content in those files was actually in the parent document. Mark |