MediaWiki REL1_35
MediaWiki\Cache\Hook\HtmlCacheUpdaterVaryUrlsHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Cache\Hook\HtmlCacheUpdaterVaryUrlsHook:

Public Member Functions

 onHtmlCacheUpdaterVaryUrls ( $urls, &$append)
 This hook is used to add variants of URLs to purge from HTTP caches.
 

Detailed Description

Stable to implement.

Definition at line 9 of file HtmlCacheUpdaterVaryUrlsHook.php.

Member Function Documentation

◆ onHtmlCacheUpdaterVaryUrls()

MediaWiki\Cache\Hook\HtmlCacheUpdaterVaryUrlsHook::onHtmlCacheUpdaterVaryUrls (   $urls,
$append 
)

This hook is used to add variants of URLs to purge from HTTP caches.

Extensions that provide site-wide variants of all URLs, such as by serving from an alternate domain or path, can use this hook to append alternative URLs for each url in $urls.

Since
1.35
Parameters
array$urlsCanonical URLs
array&$appendAppend alternative URLs for $urls
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: