Справочник:ClearInterwikiCache.php
Appearance
Outdated translations are marked like this.
| Версия MediaWiki: | ≥ 1.21 |
| Файл MediaWiki: clearInterwikiCache.php | |
|---|---|
| Расположение: | maintenance/ |
| Исходный код: | master • 1.44.2 • 1.43.5 • 1.39.15 |
| Классы: | ClearInterwikiCache |
Details
clearInterwikiCache.php — скрипт обслуживания для очистки интервики-ссылок для всех языков в 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. See T289704Options/Arguments
This script does not take any options.
Использование
php maintenance/run.php clearInterwikiCache
Terminal
$ php maintenance/run.php clearInterwikiCache wikipedia...done meta...done news...done
В MediaWiki версии 1.39.15 и ранее скрпиты обслуживания нужно вызывать через
php maintenance/scriptName.php, а не через php maintenance/run.php scriptName.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.