cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: AW: CachingCIncludeTransformer
Date Thu, 05 Jul 2001 12:51:43 GMT
On 5 Jul 2001, at 14:17, Carsten Ziegeler wrote:

> Hi,
> are you sure that the CachingCIncludeTransformer is really working?
> As far as I see the validity object gets all its information when
> the first response is generated (the timestamps are added).
> This hack works.
> But when the second response comes in, the new validity object
> for this response is empty. It is compared with the one from the
> first run and they are not equal.

New validity object is not compared with the old one. Old one contain two lists:
source urls and timestamps. When it comes to checking validity of first 
response we know that generation/transformation steps before 
CIncludeTransformer are valid (otherwise we would have had discarded cached 
pipeline already) so source url list of new validity will be the same as of old 
one. Only timestamps have to be recalculated and compared. 

> The second validity object gets the timestamps after the
> response is generated (or during the generation).
> So as far as I understood your algorithm, I should cache the
> correct result due to the hack but this is never retrieved from
> the cache.
> Or did I oversee something?

Maciek Kaminski

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

View raw message