cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans <>
Subject RE: implementing <<Cacheable>> [SOLUTION]
Date Fri, 13 Jun 2003 09:41:11 GMT
Yes I developed it under 2.0. I had a look at the 2.1 implementation, it
seems that they have implemented (sort of) the equivalent of a
DeltaTimeCacheValidity that is being checked against each file. 
My solution is just NOPCacheValidity based, if I want to expire it I touch
the stylesheet used in the transformer ;) (dirty hack but it works)

I'll have a look over the weekend on how to implement this under 2.0. 

-----Original Message-----
From: Joerg Heinicke [] 
Sent: Freitag, 13. Juni 2003 11:13
Subject: Re: implementing <<Cacheable>> [SOLUTION]

Hello Jorg,

the caching for the DirectoryGenerator was implemented on 13th of May in 
Cocoon 2.1:

Is it correct that you did it for Cocoon 2.0? Can you compare your caching 
with the one implemented in 2.1? And maybe provide a patch?



Jorg Heymans wrote:
> OK I understand the caching now a lot better. Anyone wanting to understand
> how to implement his own caching should read
> Note that in order for your serializer caching to work, the generator has
> implement cacheable as well because cocoon attempts to cache as far into
> pipeline as it can! If the start of the pipeline is already not cacheable
> then the rest won't be either! This was the problem for me all along it
> seems.
> The often used file generator is cacheable, the directorygenerator I was
> using is *not*. So I extended the existing DirectoryGenerator with a
> CachingDirectoryGenerator implementing Cacheable.  I implemented the
> interface methods, reconfigured sitemap and voila my content is delivered
> fully cached now in 100ms instead of 3s!!
> Thanks again for your help Vladim, I hope this thread has helped other
> people as well in understanding cocoon's caching mechanism.
> Greetings
> Jorg


System Development
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message