Manual:Hooks/HTMLCacheUpdate::doUpdate

From MediaWiki.org
Jump to navigation Jump to search
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": "MyExtensionHooks::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.