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 "Set wgCommentTableSchemaMigrationStage in RevisionStoreTest"
[lhc/web/wiklou.git]
/
maintenance
/
clearInterwikiCache.php
diff --git
a/maintenance/clearInterwikiCache.php
b/maintenance/clearInterwikiCache.php
index
6a6527f
..
ce19974
100644
(file)
--- a/
maintenance/clearInterwikiCache.php
+++ b/
maintenance/clearInterwikiCache.php
@@
-32,14
+32,14
@@
class ClearInterwikiCache extends Maintenance {
public function __construct() {
parent::__construct();
public function __construct() {
parent::__construct();
- $this->
mDescription = "Clear all interwiki links for all languages from the cache"
;
+ $this->
addDescription( 'Clear all interwiki links for all languages from the cache' )
;
}
public function execute() {
global $wgLocalDatabases, $wgMemc;
}
public function execute() {
global $wgLocalDatabases, $wgMemc;
- $dbr = $this->getDB( DB_
SLAVE
);
- $res = $dbr->select( 'interwiki',
array( 'iw_prefix' )
, false );
- $prefixes =
array()
;
+ $dbr = $this->getDB( DB_
REPLICA
);
+ $res = $dbr->select( 'interwiki',
[ 'iw_prefix' ]
, false );
+ $prefixes =
[]
;
foreach ( $res as $row ) {
$prefixes[] = $row->iw_prefix;
}
foreach ( $res as $row ) {
$prefixes[] = $row->iw_prefix;
}