On Sat, Jun 09, 2007 at 05:29:05PM +0200, Christophe David wrote: > >I'm a little reluctant to do a workaround like this, at least in the core > >I don't have a really good answer at the moment. > > Just an idea: if I understand correctly, the target attribute (target= > in a wiki page file) contains a list of pages the current page points > to. > > Couldn't there be another attribute like DependsOn= that would list > all the pages that are required to display the current page (includes, > headers, etc.) > [...]
It can be difficult to keep DependsOn= up to date. And we have to check not only the immediate dependencies, but also the transitive ones. Beyond that, the dependencies are really a function of the cached HTML, not the page itself. So, the approach I've been considering is to keep track of all pages that were read as part of creating the cached HTML, and saving that list along with the HTML. Then we can invalidate the cache when any of those dependencies change. This does require a fair bit of additional code and complexity to implement, and it also means reworking some of PmWiki's existing "something cached is out of date" structures. And overall it hasn't been a high priority, but I might be able to squeeze some time in to improve it. Pm _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
