Jump to navigation Jump to search
Available from version 1.26.0
Modify ParserOutput safely after it has been saved to cache.
Define function:
public static function onParserCacheSaveComplete( ParserCache $pCache, ParserOutput $po, Title $title, ParserOptions $po, Integer $revId ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"ParserCacheSaveComplete": "MyExtensionHooks::onParserCacheSaveComplete"

For MediaWiki ≤1.25:

$wgHooks['ParserCacheSaveComplete'][] = 'MyExtensionHooks::onParserCacheSaveComplete';
Called from:File(s): ParserCache.php

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ParserCacheSaveComplete extensions.