[Mediawiki-l] Don't cache this page

Rob Church robchur at gmail.com
Tue Apr 10 00:54:10 UTC 2007


On 09/04/07, Daniel Barrett <danb at vistaprint.com> wrote:
> Is there a magic word (or other markup) that can be inserted into a page
> to mean, "do not cache this page, recompute it every time it's hit?"

Not in the core software, but there are several parser hook extensions
and even custom magic words which add these...

> Similarly, is there a way to do this within PHP?  I have written an
> extension (a <sql>...</sql> tag) to do SQL queries and place the results
> in a page, and I don't want them cached.

Yes, call $parser->disableCache(); where $parser is the reference to
the parent parser (third argument passed to the hook function).


Rob Church



More information about the MediaWiki-l mailing list