MediaWiki REL1_39
|
This is a hook handler interface, see docs/Hooks.md. More...
Public Member Functions | |
onHtmlCacheUpdaterAppendUrls ( $title, $mode, &$append) | |
This hook is used to declare extra URLs to purge from HTTP caches. | |
This is a hook handler interface, see docs/Hooks.md.
Use the hook name "HtmlCacheUpdaterAppendUrls" to register handlers implementing this interface.
Definition at line 14 of file HtmlCacheUpdaterAppendUrlsHook.php.
MediaWiki\Cache\Hook\HtmlCacheUpdaterAppendUrlsHook::onHtmlCacheUpdaterAppendUrls | ( | $title, | |
$mode, | |||
& | $append ) |
This hook is used to declare extra URLs to purge from HTTP caches.
Use $mode to decide whether to gather all related URLs or only those affected by a re-render of the same content. For example, after a direct revision to the content the history page will need to be purged. However when re-rendering after a cascading change from a template, only URLs that render content need purging. The $mode will be either HtmlCacheUpdater::PURGE_URLS_LINKSUPDATE_ONLY or 0.
Title | $title | Title of the page being updated |
int | $mode | |
array | &$append | Append URLs relating to the title |
Implemented in MediaWiki\HookContainer\HookRunner.