dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge "Add an option to the title widget to exclude the current page"
[lhc/web/wiklou.git]
/
maintenance
/
clearInterwikiCache.php
diff --git
a/maintenance/clearInterwikiCache.php
b/maintenance/clearInterwikiCache.php
index
13b239f
..
ce19974
100644
(file)
--- 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 ) {