X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fdeferred%2FCdnCacheUpdate.php;h=b983e97406e234e19817d14bedb76cf4d8422029;hp=70447489b75f106c1820b6242a2fbfb13958d5f2;hb=a1ef77b2d80830fbcb617a83961d78cff9d6e384;hpb=2adff7579d43b053b190635bd3fb51943a2a3399 diff --git a/includes/deferred/CdnCacheUpdate.php b/includes/deferred/CdnCacheUpdate.php index 70447489b7..b983e97406 100644 --- a/includes/deferred/CdnCacheUpdate.php +++ b/includes/deferred/CdnCacheUpdate.php @@ -137,7 +137,7 @@ class CdnCacheUpdate implements DeferrableUpdate, MergeableUpdate { foreach ( $chunks as $chunk ) { $client = new SquidPurgeClient( $server ); foreach ( $chunk as $url ) { - $client->queuePurge( $url ); + $client->queuePurge( self::expand( $url ) ); } $pool->addClient( $client ); } @@ -254,7 +254,7 @@ class CdnCacheUpdate implements DeferrableUpdate, MergeableUpdate { * @param string $url * @return string */ - public static function expand( $url ) { + private static function expand( $url ) { return wfExpandUrl( $url, PROTO_INTERNAL ); }