Re: weird idea for smarty?
| From: | Monte Ohrt | Date: | Thu, 31 May 2001 01:40:36 +0000 |
| Subject: | Re: weird idea for smarty? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-843@lists.php.net to get a copy of this message | ||
Read the docs, Smarty does this. You can have dynamic contents in your cached
templates.
hans@linux.gelrevision.nl wrote:
> Hi all,
>
> First of all, I fixed the array prob.
>
> I might have a weird idea for Smarty. Would it be possible to create a function
> that caches only certain templates? Let me explain:
>
> Suppose I have a page the is basicly very static except for certain parts.
> Header and footer are almost static, the body part consists of 4 parts that
> should be dynamic and responde to posted vars.
>
> In detail it should be possible to create a Smarty function that would be able
> to cache the static templates by their name, i.e:
>
> $smarty->cache_tpl('blabla.tpl');
>
> This would enable us to include dynamic parts and cache the static parts that
> would only change when someone clears those static templates from the cache (in
> order to update some kind of menu for instance).
>
> Under the hood I suppose it would mean that you would have to cat the static
> and dynamic parts to one file. Don't know what it would do to the performance.
>
> Regards,
>
> Hans
>
> --
> Linux : http://linux.gelrevision.nl/
> phpReview : http://phpReview.nl.linux.org/
> Boeken : http://nl.linux.org/boeken/
>
> ---
> 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/