|
MediaWiki REL1_39
|
Handles purging the appropriate CDN objects given a list of URLs or Title instances. More...


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 | newFromTitles ( $pages, $urls=[]) |
| Create an update object from an array of Title objects, or a TitleArray object. | |
| 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 84 of file CdnCacheUpdate.php.
References purge().
| CdnCacheUpdate::getUrls | ( | ) |
Definition at line 159 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 |
Create an update object from an array of Title objects, or a TitleArray object.
| PageReference[] | $pages | |
| string[] | $urls |
Definition at line 79 of file CdnCacheUpdate.php.
References wfDeprecated().
|
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 117 of file CdnCacheUpdate.php.
References wfDebugLog().
Referenced by doUpdate(), and CdnPurgeJob\run().