X-Git-Url: http://git.cyclocoop.org/%24href?a=blobdiff_plain;f=maintenance%2FclearInterwikiCache.php;h=8579f0f48a195f690d0be1f3e2f154536ba8459f;hb=5cb8e748c39725b1ca6e00284b84818490ba2385;hp=13b239fd84fe036a71fd5ed336301e1b486c6b13;hpb=fc1ca75323b5f424a9f8d28d42d85a311ed2f721;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/clearInterwikiCache.php b/maintenance/clearInterwikiCache.php index 13b239fd84..8579f0f48a 100644 --- a/maintenance/clearInterwikiCache.php +++ b/maintenance/clearInterwikiCache.php @@ -37,8 +37,8 @@ class ClearInterwikiCache extends Maintenance { public function execute() { global $wgLocalDatabases, $wgMemc; - $dbr = $this->getDB( DB_SLAVE ); - $res = $dbr->select( 'interwiki', [ 'iw_prefix' ], false ); + $dbr = $this->getDB( DB_REPLICA ); + $res = $dbr->select( 'interwiki', [ 'iw_prefix' ], '', __METHOD__ ); $prefixes = []; foreach ( $res as $row ) { $prefixes[] = $row->iw_prefix; @@ -54,5 +54,5 @@ class ClearInterwikiCache extends Maintenance { } } -$maintClass = "ClearInterwikiCache"; +$maintClass = ClearInterwikiCache::class; require_once RUN_MAINTENANCE_IF_MAIN;