return new CdnCacheUpdate( $urlArr );
}
- /**
- * @param Title $title
- * @return CdnCacheUpdate
- * @deprecated since 1.27
- */
- public static function newSimplePurge( Title $title ) {
- return new CdnCacheUpdate( $title->getCdnUrls() );
- }
-
/**
* Purges the list of URLs passed to the constructor.
*/
self::purge( $this->urls );
if ( $wgCdnReboundPurgeDelay > 0 ) {
- JobQueueGroup::singleton()->lazyPush( new CdnPurgeJob(
- Title::makeTitle( NS_SPECIAL, 'Badtitle/' . __CLASS__ ),
- [
- 'urls' => $this->urls,
- 'jobReleaseTimestamp' => time() + $wgCdnReboundPurgeDelay
- ]
- ) );
+ JobQueueGroup::singleton()->lazyPush( new CdnPurgeJob( [
+ 'urls' => $this->urls,
+ 'jobReleaseTimestamp' => time() + $wgCdnReboundPurgeDelay
+ ] ) );
}
}