MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onHtmlCacheUpdaterAppendUrls ( $title, $mode, &$append) | |
This hook is used to declare extra URLs to purge from HTTP caches. | |
Stable to implement.
Definition at line 11 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 | Mode |
array | &$append | Append URLs relating to the title |
Implemented in MediaWiki\HookContainer\HookRunner.