X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=maintenance%2FpurgeList.php;h=9963cbf64d063382ba19c0014549951a6e4645a2;hb=fcdd643a46d87b677f6cdcc3ba9440e1472d8df7;hp=2e1963097d8dc36b71bc9f14f864254d2139d331;hpb=b2645d82849ca74b0e6b8df6a3e28e81d0561a58;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/purgeList.php b/maintenance/purgeList.php index 2e1963097d..9963cbf64d 100644 --- a/maintenance/purgeList.php +++ b/maintenance/purgeList.php @@ -86,7 +86,7 @@ class PurgeList extends Maintenance { * @param int|bool $namespace */ private function purgeNamespace( $namespace = false ) { - $dbr = wfGetDB( DB_SLAVE ); + $dbr = $this->getDB( DB_SLAVE ); $startId = 0; if ( $namespace === false ) { $conds = array(); @@ -129,7 +129,7 @@ class PurgeList extends Maintenance { if ( $this->hasOption( 'verbose' ) ) { $this->output( $url . "\n" ); } - $u = new SquidUpdate( array( $url ) ); + $u = new CdnCacheUpdate( array( $url ) ); $u->doUpdate(); usleep( $delay * 1e6 ); } @@ -137,7 +137,7 @@ class PurgeList extends Maintenance { if ( $this->hasOption( 'verbose' ) ) { $this->output( implode( "\n", $urls ) . "\n" ); } - $u = new SquidUpdate( $urls ); + $u = new CdnCacheUpdate( $urls ); $u->doUpdate(); } }