Re: Re[8]: Caching all but part (fixed, ignore previous message)
| From: | Andrei Zmievski | Date: | Wed, 30 Jan 2002 22:02:31 +0000 |
| Subject: | Re: Re[8]: Caching all but part (fixed, ignore previous message) | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2623@lists.php.net to get a copy of this message | ||
On Wed, 30 Jan 2002, Linus McCabe wrote:
>
> I agree my example isnt really separating php and layout logic...
> Exchange 'the ideal situation' in my last mail to 'a good way' :)
>
> Maybe this would be the ideal situation:
>
> The possibility to add your own tags and chosing weather they should be
> cached or not (I mean the second level of cacheing, of course, not the
> compilation)
> I believe you're already working on ways to let people add their own tags?
That is on the TODO list. The tags would simply be custom functions.
> Maybe something like
> {userloggedin}
> <a href="...:"...<...>
> {/userloggedin}
>
> 'userloggedin' being defined somehow by the sitedeveloper.
> Either the developer who defines the tag should be able to tell weather it
> should be staticly cached or 'inserted', or it could be optional (does that
> make sence?) like
>
> {userloggedin cache=false}
> <a href="...:"...<...>
> {/userloggedin}
A way for a custom function to hook into the caching architecture would
be good. No promises for now, I'm concentrating on another big task.
-Andrei
It is commonly the case with technologies that you can get
the best insight about how they work by watching them fail.
-- Neal Stephenson