cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stuart Roebuck <stuart.roeb...@adolos.co.uk>
Subject [C2] lastModificationDate misuse?
Date Tue, 14 Aug 2001 14:15:25 GMT
(My tour through Cocoon continues...)

In SitemapSource.java are the lines:

> // the event pipeline is cacheable
> // now calculate a last modification date
> String hashKey = pck.toString() + validity.toString();
> this.lastModificationDate = HashUtil.hash(hashKey);

this is used in ProgramGeneratorImpl.java:

> /*
>  * FIXME: It's the program (not the instance) that must
>  * be queried for changes!!!
>  */
> if (programInstance != null && 
> programInstance.modifiedSince(source.getLastModified())) {
>   // Release the component.
>   release(programInstance);

consequently, any use of the ServerPages Generator which takes an input 
from within the sitemap (e.g. using a "cocoon:/" URI) will result in (on a 
practically random basis) certain XSP (et. al) pages being regenerated 
over and over again, and will potentially prevent updated XSP (et. al) 
from being properly regenerated.

Stuart.

-------------------------------------------------------------------------
Stuart Roebuck                                  stuart.roebuck@adolos.com
Lead Developer                               Java, XML, MacOS X, XP, etc.
ADOLOS                                           <http://www.adolos.com/>

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


Mime
View raw message