Re: caching question
| From: | Monte Ohrt | Date: | Fri, 11 May 2001 16:58:12 +0000 |
| Subject: | Re: caching question | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-747@lists.php.net to get a copy of this message | ||
this brings an interesting idea about.
{include file="blah.tpl" cache=no}
so this included file would get dynamically included into the cached
content each time.
Monte Ohrt wrote:
>
> Try this approach.
>
> ---------- index.php ---------
>
> $smarty->caching = true;
> $smarty->display('index.tpl');
>
> ---------- index.tpl ---------
>
> {* Smarty *}
>
> {include file="header.tpl"}
> {include file="index_l.tpl"}
>
> {* put the guts to index.tpl here *}
>
> {include file="index_r.tpl"}
> {include file="footer.tpl"}
>
> Andreas Kaiser wrote:
> >
> > Hi,
> >
> > my template strukture looks like:
> >
> > header.tpl
> > index_l.tpl
> > |_ include template_x1.tpl
> > |_ include template_x2.tpl
> > xyz.tpl
> > index_r.tpl
> > footer.tpl
> >
> > and in my php file:
> > $smarty->display('header.tpl');
> > $smarty->display('index_l.tpl');
> > $smarty->display('index.tpl');
> > $smarty->display('index_r.tpl');
> > $smarty->display('footer.tpl');
> >
> > The included templates and xyz.tpl consits of dynamic content. So I
> > can not cache these templates.
> > So what can I do, to cache only spezial templates and the others not?
> >
> > (Sorry for my english ;-)
> >
> > THX
> > Andreas
> >
> > --
> > vocote.de e.K. Internetapplikationen, Webdesign, Webhosting
> > Neudörfeler Str. 4a - D-08543 Jocketa
> > Telefon: +49-37439-77175 - Fax: +49-37439-77185
> > WWW: http://www.vocote.de - email:
> > mailto:info@vocote.de
> >
> > ---
> > You are currently subscribed to smarty as: monte@ispi.net
> > To unsubscribe send a blank email to $subst('Email.Unsub')
> > Visit Smarty's homepage at
> > http://www.phpinsider.com/php/code/Smarty/
>
> --
> Monte Ohrt <monte@ispi.net>
> http://www.ispi.net/
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/