Extension:ParserCacheControl

From MediaWiki.org

Jump to: navigation, search

           

Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
ParserCacheControl

Release status: stable

Implementation  Page action, Parser extension
Description
Author(s)  user:jldupont
Last Version  1.0
MediaWiki  tested on 1.8.2, 1.10
License No license specified
Download Code

check usage (experimental)

[edit] What can this extension do?

Disables the 'parser cache' upon article update/creation. This helps some 'parser cache unfriendly extensions' to be used with parser caching even when the said extensions are not designed to be.

More specifically, extensions that modify the article's content outside the usual parser hooks might benefit. E.g. loading content through the hook 'ArticleAfterFetchContent'.

The extension retains the sought functionality of the 'parser cache' albeit requiring a first page view to get the said page in the cache. This contrast with the normal behavior of Mediawiki where an newly created/edited page is placed in the parser cache right away.

[edit] Disclaimer

This extension does not claim nor address all the issues related to parser caching.


[edit] Changes to LocalSettings.php

require_once("$IP/extensions/ExtensionName/ParserCacheControl.php");