Thank you Rob and others. Your answers led me to find the Extensions FAQ and lots more great information.
DanB
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org on behalf of Rob Church Sent: Mon 4/9/2007 8:54 PM To: MediaWiki announcements and site admin list Cc: Subject: Re: [Mediawiki-l] Don't cache this page
On 09/04/07, Daniel Barrett danb@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
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l