forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <cross...@apache.org>
Subject Re: [jira] Closed: (FOR-910) project DOAP file retrieved numerous times during docs generation
Date Tue, 25 Jul 2006 02:58:40 GMT
Ross Gardler (JIRA) wrote:
> 
> Ross Gardler closed FOR-910.
> ----------------------------
> 
>     Resolution: Fixed
>       Assignee: Ross Gardler
> 
> The resource is retrieved so often because it is needed to build the navigation  menus,
which are on every page.

Yes, however it is still strange that there are so many requests.
There are only 33 html pages generated, yet 603 requests for doap.xml
So perhaps there is another issue with this "projectDetails" stuff.

> The resource, when retrieved from the remote location is not cached efficiently by Cocoon
(I guess Cocoon does not check for validity of the remote file).
> 
> I fixed this by adding a cache to the pipeline that generates the site.ml snippets from
the DOAP files. The requests are cached for 10 minutes - should be plenty of time for even
a large site build - but this will cause problems if trying to dynamically edit a DOAP.

Thanks, that is a good demo of using a bit more of the Cocoon cache
abilities.

I am not sure if this is related, but on a Cocoon app i use
a patch by Ugo Cei:

Re: Supporting "conditional GET" in Cocoon
http://thread.gmane.org/gmane.text.xml.cocoon.devel/59509

-David

Mime
View raw message