Inside an extension module: what is the correct way to _disable caching for that specific page_ (example: dynamic integration of texts from another source, which might change) ?
$wgOut->setSquidMaxage( 0 );
Rob Church
On 18/01/06, Thomas Gries mail@tgries.de wrote:
Inside an extension module: what is the correct way to _disable caching for that specific page_ (example: dynamic integration of texts from another source, which might change) ?
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Thomas Gries wrote:
Inside an extension module: what is the correct way to _disable caching for that specific page_ (example: dynamic integration of texts from another source, which might change) ?
Rob Church wrote:
$wgOut->setSquidMaxage( 0 );
Yes, you could do that, or you could use $parser->disableCache() if you actually wanted it to work. $parser is a Parser object that should be passed as a parameter to Parser-related hooks.
-- Tim Starling
Ah well, at least someone corrected me. *shrug*
Rob Church
On 18/01/06, Tim Starling t.starling@physics.unimelb.edu.au wrote:
Thomas Gries wrote:
Inside an extension module: what is the correct way to _disable caching for that specific page_ (example: dynamic integration of texts from another source, which might change) ?
Rob Church wrote:
$wgOut->setSquidMaxage( 0 );
Yes, you could do that, or you could use $parser->disableCache() if you actually wanted it to work. $parser is a Parser object that should be passed as a parameter to Parser-related hooks.
-- Tim Starling
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org