Manual:clearInterwikiCache.php
From Linux Web Expert
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.21
<translate> MediaWiki version:</translate> |
tiedosto MediaWiki: clearInterwikiCache.php | |
---|---|
Sijainti: | maintenance/ |
Lähdekoodi: | master • 1.41.1 • 1.40.3 • 1.39.7 |
Sarjat: | ClearInterwikiCache |
Tiedot
clearInterwikiCache.php is a maintenance script to clear the interwiki links for all languages in memcached .
This script will clear the interwiki cache on all databases configured in
$wgLocalDatabases
. If there's no database configured, this script will do nothing. Katso <translate> task <tvar name=1>T289704</tvar></translate>Options/Arguments
This script does not take any options.
Usage
php maintenance/clearInterwikiCache.php
Terminal
$ php maintenance/clearInterwikiCache.php wikipedia...done meta...done news...done
Troubleshooting
<translate> Tracked in [[<tvar name=1>phabricator:</tvar>|Phabricator]]</translate>
<translate> Task <tvar name=1>T289704</tvar></translate>
<translate> Task <tvar name=1>T289704</tvar></translate>
If the script does not output anything it means nothing was done because you have no "local database". This problem is caused by the default value of the $wgLocalDatabases configuration. This behavior deserves further explanation but the quick workaround is to add your database name to that array.