Manual:clearInterwikiCache.php
MediaWiki バージョン: | ≧ 1.21 |
MediaWiki ファイル: clearInterwikiCache.php | |
---|---|
場所: | maintenance/ |
ソース コード: | master • 1.43.1 • 1.42.6 • 1.39.12 |
クラス: | ClearInterwikiCache |
詳細
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. T289704 を参照
オプション/引数
このスクリプトにはオプションはありません。
使用法
php maintenance/run.php clearInterwikiCache
Terminal
$ php maintenance/run.php clearInterwikiCache wikipedia...done meta...done news...done
MediaWiki バージョン 1.39.12 以前では、メンテナンス スクリプトを
php maintenance/run.php scriptName
ではなく php maintenance/scriptName.php
を使用して実行する必要があります。Troubleshooting
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.