Re: disable caching
| From: | Marc Logemann | Date: | Wed, 17 Oct 2001 14:48:41 +0000 |
| Subject: | Re: disable caching | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-1713@lists.php.net to get a copy of this message | ||
Hi,
>> Perhaps someone can explain to me in detail why the templates are stored
>> on
>> disk. Is there another reason than caching? I mean, lets suppose
> Because they are only compiled ONCE and then stored. The next calls
> don't compile the templates again. That's one BIG advantage of smarty!
yeah i know, thats the caching advantage, but IMO it would be cool to
disable this storing of compiled templates, this is not good for
performance, but you would only need this in cases i described.
If you want to make a product which is totally dependend on templates,
its not nice to output something directly in php only because
the user hasnt created a directory for template storing. (in fact
the user isnt creating any directory when my setup procedure is ready)
I am dreaming of a ability of smarty, that i can throw out templates
without being forced to have a compile Dir. This way i can present
the user template based setup screens. And template based Error
screens that the users havnt the correct rights set.
i know there are other ways, but this is all a workaround.
At the end something like display("my.tpl", false) would be nice
Or $smarty->disableStoring(true)
This way smarty would directly throw out the template, w/o any
storage in the compile dir
IMO a quite useful feature.
morelogs | Marc Logemann, chief evangelist
____________________________________________________________
Rellinghauser Str. 332 · D-45136 Essen · Germany
T: +49 201 84 188-177 · F: +49 201 84 188-199
mlogemann@morelogs.de · http://www.morelogs.de