cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Russell <p...@luminas.co.uk>
Subject Re: [C2]: Patch for XSL Caching of the XalanTransformer
Date Tue, 07 Nov 2000 16:54:57 GMT
On Tue, Nov 07, 2000 at 05:06:22PM +0100, Carsten Ziegeler wrote:
> finally I had time for it: Attached is a patch for the
> XalanTransformer for file caching of XSL files. The caching
> mechanism simply looks if the stylesheet in question is a
> local file. 
> If it is a local file, the stylesheet is cached together with
> the current system time. So when this stylesheet is retrieved
> out of the cache the next time, the caching time can be
> compared with the last modified time of the file.  If the
> stylesheet is not a local file it is always cached, as it was
> the current behaviour. In my opinion such stylesheets should
> never be cached, but that might be another patch...

Looks sane from here. I'd rather we were caching an inner class
than an array though, to be honest. Don't think it'd be a speed
penalty, and it'd certainly be easier to read...

We also need to develop some central object caching architecture
for Cocoon. Is this in Avalon yet?

Paul
-- 
Paul Russell                               <paul@luminas.co.uk>
Technical Director,                   http://www.luminas.co.uk
Luminas Ltd.

Mime
View raw message