Re: Mason 2.0 thoughts
John Siracusa <[email protected]> Sun, 13 May 2007 13:18:25 -0400
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <C26CC0A1.750B8%[email protected]> |
On 5/13/07 12:30 AM, Jonathan Swartz wrote:
> That works for caching a whole page, which in my experience is rarely
> possible on a dynamic site. cache_self allows you to cache the output
> of an arbitrary component, such as a form menu or nav bar.
Speaking of cache_self, here's a feature that I've implemented enough times
to wish it was built-in: cache expiration on the <unit time>. For example,
a cache that expires at 00:00 each day. (That's something very different
than an expiration time of 24 hours.)
A second request:
<% STUFF |myescape %>
where a piece of my code gets passed STUFF, either as a string or as a
"live" snippet of Perl. Right now, I have to do:
<% 'STUFF' |myescape %>
and the quotes annoy me, as does the need to eval manually.
-John
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/