[dokuwiki] Re: Patch: Implicit ~~NOCACHE~~ on files with <php>

  • From: Chris Smith <chris@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 16 Nov 2007 11:27:00 +0000

Hi,

For ease of upgrading, you may be better to implement this as a syntax
plugin.  Use the same patterns as used by the parser with a lower sort
number.  The lower sort number ensures your plugin gets the code rather
than DW.

I also think a better implementation is to set the renderer property
"info['cache']" to false rather than to use the handler to generate two
instructions for the "php" mode.  e.g. for the patch,
inc/parser/xhtml.php @308, insert  your test + $this->info['cache'] =
false, or in a syntax plugin, in the renderer method, add your test +
$renderer->info['cache'] = false;

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

Other related posts: