Go to the FreeLists Home Page Home Signup Help Login
 



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

[dokuwiki] Re: Discussion: Page caching and Plugins

  • From: Esther Brunner <esther@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 15 Jul 2005 14:17:43 +0200
> Hmm. If it is just about cache or no cache the plugin could
> simply set info['cache'] = false for the renderer. Eg:

It really more than simply no cache / cache. If the plugin relies on
infrequently changing external data - e.g. another wiki page or file - most
of the time caching is desired. It would be nice(tm) if the plugin could be
given the opportunity to invalidate the cache. :)

I agree with Chris. Plugins should be able to make some checks at showtime, not only when the page is created for the cache. I use $renderer->info['cache'] = FALSE in the include plugin, but I consider it more like a hack. And it's no solution for a plugin that will be used in a lot of pages. For example, I wanted to turn the discussion template into a comments plugin, but that would only be possible at the price of turning caching virtually off for the whole site.


-- 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.