[Catalyst] C::P::PageCache patch for reducing duplicate processing

Toby Corkindale toby at ymogen.net
Tue Jun 27 13:41:18 CEST 2006


See attached for a patch that simply emulates that Mason-cache behaviour.

(Note that this does not fix the race conditions I identified in my 
most-recent email to the list.)

-Toby

Perrin Harkins wrote:
> On Thu, 2006-06-22 at 14:01 -0500, Wade.Stuart at fallon.com wrote:
>> Or have the first hit after the expire set the expire time counter to the
>> next interval so the next hit does not even think to rebuild.  Then you can
>> also rebuild the cache to a temp name and overwrite the current cache when
>> it is complete.  This way to sleeping is required on long building pages
>> with many hits (they all just serve the old page until the new one
>> overwrites in an atomic write).
> 
> FYI, that's how Mason does it.
> 
> - Perrin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PageCache.patch
Type: text/x-patch
Size: 2619 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060627/d87d727d/attachment.bin 


More information about the Catalyst mailing list