Available from version 1.14.0
Removed in version 1.17.0
After cache invalidation updates are inserted into the job queue
Define function:
public static function onHTMLCacheUpdate_doUpdate( $title ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"HTMLCacheUpdate::doUpdate": "MyExtensionHooks::onHTMLCacheUpdatedoUpdate"

For MediaWiki ≤1.25:

$wgHooks['HTMLCacheUpdate::doUpdate'][] = 'MyExtensionHooks::onHTMLCacheUpdatedoUpdate';
Called from:File(s): HTMLCacheUpdate.php

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


  • $title: Title object, pages linked to this title are purged.