Go to the FreeLists Home Page Home Signup Help Login
 



[dokuwiki] || [Date Prev] [09-2005 Date Index] [Date Next] || [Thread Prev] [09-2005 Thread Index] [Thread Next]

[dokuwiki] Re: Performance and caching

  • From: Esther Brunner <esther@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 8 Sep 2005 11:05:03 +0200
> If DokuWiki knows which pages are made obsolete by an event, it can always
> invalidate the cache files for those pages, forcing them to refresh on next
> load."


Where this can be problematic is managing the relationships /
dependencies between pages. If it's just the links then perhaps that's
doable. But there are also plugins around for things like "includes"
and the danger is needing alot of code to handle it.

I think we need a way for the parser to know which pages need to be rebuilt when a certain page is changed instead of invalidating the cache for the whole wiki. We could have a metafile $id.backlink in which all pages are listed which link to or retrieve data from this page (like the include plugin). The parser (and certain plugins) would extract all dependecies on other pages, compare it to the previous version (similar as the full text indexer does for words) and write the backlink metafile. Now when a page gets created, changed or deleted the cache of all the pages in the backlink file will be deleted and hence the page is refreshed on the next load.


-- esther
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist




[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.