Manual:Hooks/HTMLCacheUpdate::doUpdate

From mediawiki.org
HTMLCacheUpdate::doUpdate
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": "MediaWiki\\Extension\\MyExtension\\Hooks::onHTMLCacheUpdatedoUpdate"
	}
}
Called from: File(s): HTMLCacheUpdate.php
Interface: HTMLCacheUpdate__doUpdateHook.php

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

Details[edit]

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