Wikia code/maintenance/clear interwiki cache.php
This page is obsolete. It is being retained for archival purposes. It may document extensions or features that are obsolete and/or no longer supported. Do not rely on the information here being up-to-date. The information shown below refers to the now unmaintained 1.16 MediaWiki release. The current stable release number is 1.42.3. |
--- D:\Programming\SVN\mediawiki\branches\REL1_16\phase3\maintenance\clear_interwiki_cache.php 2011-07-18 22:30:28.560546900 +0100
+++ D:\Programming\SVN\wikia\trunk\maintenance\clear_interwiki_cache.php 2011-08-17 15:05:34.968750000 +0100
@@ -38,7 +38,8 @@
foreach ( $res as $row ) {
$prefixes[] = $row->iw_prefix;
}
-
+ global $wgDBname;
+ $wgLocalDatabases[] = $wgDBname;
foreach ( $wgLocalDatabases as $db ) {
$this->output( "$db..." );
foreach ( $prefixes as $prefix ) {