Příručka:ClearInterwikiCache.php
Appearance
| Verze MediaWiki: | ≥ 1.21 |
| Soubor MediaWiki: clearInterwikiCache.php | |
|---|---|
| Lokalita: | maintenance/ |
| Zdrojový kód: | master • 1.45.1 • 1.44. • 1.39.16 |
| Třídy: | ClearInterwikiCache |
Podrobnosti
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. See T289704Options/Arguments
This script does not take any options.
Usage
php maintenance/run.php clearInterwikiCache
Terminal
$ php maintenance/run.php clearInterwikiCache wikipedia...done meta...done news...done
Ve verzi MediaWiki 1.39.16 a starší musíte vyvolat skripty údržby pomocí
php maintenance/NazevSkriptu.php namísto php maintenance/run.php NazevSkriptu.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.