weird idea for smarty?
| From: | hans at linux dot gelrevision dot nl | Date: | Thu, 31 May 2001 00:57:09 +0000 |
| Subject: | weird idea for smarty? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-842@lists.php.net to get a copy of this message | ||
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/