Справочник:ClearInterwikiCache.php

This page is a translated version of the page Manual:ClearInterwikiCache.php and the translation is 21% complete.
Outdated translations are marked like this.
Версия MediaWiki:
1.21

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 T289704

Options/Arguments

This script does not take any options.

Использование

php maintenance/run.php clearInterwikiCache
Terminal
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of 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.

См. также