Re: And one more :-)
| From: | Norbert Röcher | Date: | Fri, 12 Apr 2002 12:19:33 +0000 |
| Subject: | Re: And one more :-) | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3666@lists.php.net to get a copy of this message | ||
"Norbert röcher" <norbert.roecher@t-online.de> schrieb im Newsbeitrag
news:20020412125727.39027.qmail@pb1.pair.com...
> Included templates are compiled as separate files. Is there a reason
> why these files are not also written as cached files? However, this
> will need an additional, defineable parameter to the inlcude-function
> as identifier for the cached file.
BTW: A great functionallity would be to optionally set a separated
cache_lifetime for each inluded file, which is set as expire-timestamp
within the cached included file. Any include should then first check
for a cached file.
In addition the include-tag could be compiled as an {include on
expire}-function in the cached upper template. If the expiring time of
an included file is earlier than the including once, the including
files template has to be set to this value.
Et voila: a high dynamic killer-cache-function, which makes run your
site faster than Forrest Gump... :-)
Regards,
Norbert