MediaWiki version: | ≥ 1.21 |
MediaWiki file: | clearInterwikiCache.php|
---|---|
Location: | maintenance/ |
Source code: | master • 1.40.0 • 1.39.4 • 1.35.11 |
Classes: | ClearInterwikiCache |
Details
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 task T289704Options/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
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.See also
- Manual:Interwiki
- Interwiki cache
- Manual:DumpInterwiki.php
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.