Extension:ParserCacheControl

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
ParserCacheControl

Release status: stable

Implementation Page action, Parser extension
Description Disables the 'parser cache' upon article update/creation.
Author(s) user:jldupont
Last version 1.0
MediaWiki tested on 1.8.2, 1.10
License No license specified
Download Code
Hooks used
ArticleSave
Check usage and version matrix; stats

What can this extension do?[edit]

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.

Disclaimer[edit]

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


Changes to LocalSettings.php[edit]

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