cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans>
Subject Re: problem with caching aggregated src
Date Sat, 03 Jan 2004 21:08:41 GMT
Doesn't the lastmodified check on the directory cover all this?

1) Validity stores the src directory last modified attribute + number of 
files that were added to the generator
2) Validity is invalidated if any of the above changes. There is no 
iterating over (potentially long) filesets to compare attributes.

Both solutions are ok, but this one is simpler and more efficient.



Joerg Heinicke wrote:

> On 03.01.2004 19:26, Jorg Heymans wrote:
>> Cool tnx, so that's 2 platforms out of 3, i'll get started on that 
>> patch tonight.
> There was a really simple patch proposal - if I could find it ...
> You only have to take the number of entries in the validity into account 
> additionally. If this number is different than before, something has 
> been added or deleted. If it has not changed, you have to look on the 
> timestamps. If a file has been deleted this timestamp check finds it out 
> as it searches for the file. This also means that adding one file and at 
> the same time deleting the file would also make the cached content invalid.
> Ah found it in my old mails ... it's not that old:
> Joerg

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

View raw message