cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans <Jorg.Heym...@12snap.com>
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. 

Regards
Jorg
-----Original Message-----
From: Joerg Heinicke [mailto:joerg.heinicke@gmx.de] 
Sent: Freitag, 13. Juni 2003 11:13
To: cocoon-users@xml.apache.org
Subject: Re: implementing <<Cacheable>> [SOLUTION]

Hello Jorg,

the caching for the DirectoryGenerator was implemented on 13th of May in 
Cocoon 2.1: 
http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/java/org/apache/cocoon/gene
ration/DirectoryGenerator.java

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?

Thanks,

Joerg

Jorg Heymans wrote:
> OK I understand the caching now a lot better. Anyone wanting to understand
> how to implement his own caching should read
> 
> http://wiki.cocoondev.org/Wiki.jsp?page=WritingForCacheEfficiency
> http://cocoon.apache.org/2.0/userdocs/concepts/caching.html
> 
> Note that in order for your serializer caching to work, the generator has
to
> implement cacheable as well because cocoon attempts to cache as far into
the
> 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
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
joerg.heinicke@virbus.de
www.virbus.de


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message