You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Carsten Ziegeler <cz...@sundn.de> on 2000/11/07 17:06:22 UTC

[C2]: Patch for XSL Caching of the XalanTransformer

Hi,

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...


Regards
Carsten Ziegeler

Open Source Group              sunShine - Lighting up e:Business
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de                           mailto:cziegeler@sundn.de 
================================================================

Re: [C2]: Patch for XSL Caching of the XalanTransformer

Posted by Paul Russell <pa...@luminas.co.uk>.
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                               <pa...@luminas.co.uk>
Technical Director,                   http://www.luminas.co.uk
Luminas Ltd.