X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdeferred%2FCdnCacheUpdate.php;h=2d07f75156eb75a5c0288b1d91159ee4a7bb7cc0;hb=495f9b978eba7642ffcd699ca63a1767d117baf9;hp=301c4f3b7eb4e9da31bfe6965276db5a90d192fa;hpb=7babd362babcbf7f20adb8e12edb4f4bc1d4249f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/deferred/CdnCacheUpdate.php b/includes/deferred/CdnCacheUpdate.php index 301c4f3b7e..2d07f75156 100644 --- a/includes/deferred/CdnCacheUpdate.php +++ b/includes/deferred/CdnCacheUpdate.php @@ -62,15 +62,6 @@ class CdnCacheUpdate implements DeferrableUpdate, MergeableUpdate { 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. */ @@ -80,13 +71,10 @@ class CdnCacheUpdate implements DeferrableUpdate, MergeableUpdate { 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 + ] ) ); } } @@ -286,10 +274,3 @@ class CdnCacheUpdate implements DeferrableUpdate, MergeableUpdate { return false; } } - -/** - * @deprecated since 1.27 - */ -class SquidUpdate extends CdnCacheUpdate { - // Keep class name for b/c -}