MediaWiki REL1_41
|
Handles purging the appropriate CDN objects given a list of URLs or Title instances. More...
Inherits DeferrableUpdate, and MergeableUpdate.
Public Member Functions | |
__construct (array $targets, array $options=[]) | |
doUpdate () | |
Perform the actual work. | |
getUrls () | |
merge (MergeableUpdate $update) | |
Merge this enqueued update with a new MergeableUpdate of the same qualified class name. | |
Static Public Member Functions | |
static | purge (array $urls) |
Purges a list of CDN nodes defined in $wgCdnServers. | |
Handles purging the appropriate CDN objects given a list of URLs or Title instances.
Definition at line 31 of file CdnCacheUpdate.php.
CdnCacheUpdate::__construct | ( | array | $targets, |
array | $options = [] ) |
string[] | PageReference[] | $targets | Collection of URLs/titles to be purged from CDN |
array | $options | Options map. Supports:
|
Definition at line 46 of file CdnCacheUpdate.php.
CdnCacheUpdate::doUpdate | ( | ) |
Perform the actual work.
Implements DeferrableUpdate.
Definition at line 70 of file CdnCacheUpdate.php.
References purge().
CdnCacheUpdate::getUrls | ( | ) |
Definition at line 145 of file CdnCacheUpdate.php.
CdnCacheUpdate::merge | ( | MergeableUpdate | $update | ) |
Merge this enqueued update with a new MergeableUpdate of the same qualified class name.
MergeableUpdate | $update | The new update (having the same class) |
Implements MergeableUpdate.
Definition at line 61 of file CdnCacheUpdate.php.
|
static |
Purges a list of CDN nodes defined in $wgCdnServers.
$urlArr should contain the full URLs to purge as values (example: $urlArr[] = 'http://my.host/something')
string[] | $urls | List of full URLs to purge |
Definition at line 103 of file CdnCacheUpdate.php.
References wfDebugLog().
Referenced by doUpdate(), and CdnPurgeJob\run().