X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=maintenance%2FclearInterwikiCache.php;h=ce19974e31476c7dcf2ce09641a15268f0f61f18;hb=90845301542482bd4e502221e6485a7375193529;hp=13b239fd84fe036a71fd5ed336301e1b486c6b13;hpb=d716155c8b2d6e4a51a4110195cee7a1794846e8;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/clearInterwikiCache.php b/maintenance/clearInterwikiCache.php index 13b239fd84..ce19974e31 100644 --- a/maintenance/clearInterwikiCache.php +++ b/maintenance/clearInterwikiCache.php @@ -37,7 +37,7 @@ class ClearInterwikiCache extends Maintenance { public function execute() { global $wgLocalDatabases, $wgMemc; - $dbr = $this->getDB( DB_SLAVE ); + $dbr = $this->getDB( DB_REPLICA ); $res = $dbr->select( 'interwiki', [ 'iw_prefix' ], false ); $prefixes = []; foreach ( $res as $row ) {