Re: [SMARTY] caching and included templates
| From: | messju mohr | Date: | Wed, 26 May 2004 07:26:44 +0000 |
| Subject: | Re: [SMARTY] caching and included templates | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11406@lists.php.net to get a copy of this message | ||
On Sun, May 23, 2004 at 05:24:40PM -0400, Travis Low wrote:
> Okay, next question...the caching is keyed off the template name...so does
> it matter whether I specify "file:MyTemplate.tpl" or "Template.tpl" when
> asking Smarty if a template has been cached?
although they are the same file, "MyTemplate.tpl",
"file:MyTemplate.tpl" and "file:/path/to/template-dir/Template.tpl"
all lead to different cached files. so is_cached won't return true if
you mix the names.
> cheers,
>
> Travis
>
> messju mohr wrote:
> >On Sun, May 23, 2004 at 05:10:12PM -0400, Travis Low wrote:
> >
> >>When a template is cached, are included templates cached as well?
> >
> >
> >not the template is cached. the template's output is cached. the
> >cached output contains the output of all included templates as well.
> >
> >
> >>Or are they compiled each time, regardless of the cache status of
> >>the enclosing template?
> >>
> >>
> >>cheers,
> >>
> >>Travis
> >>
> >>--
> >>Travis Low
> >><mailto:travis@dawnstar.com>
> >><http://www.dawnstar.com>
> >
> >
> >
> >
>
> --
> Travis Low
> <mailto:travis@dawnstar.com>
> <http://www.dawnstar.com>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php