Jump to content
MediaWiki

Manual:ClearInterwikiCache.php

From mediawiki.org
This page is a translated version of the page Manual:ClearInterwikiCache.php and the translation is 21% complete.
Versión de MediaWiki:
≥ 1.21
Archivo de MediaWiki: clearInterwikiCache.php
Ubicación: maintenance/
Código fuente: master1.45.11.44.31.43.6
Clases: 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 T289704

Options/Arguments

This script does not take any options.

Uso

phpmaintenance/run.phpclearInterwikiCache
Terminal
$ php maintenance/run.php clearInterwikiCache
wikipedia...done
meta...done
news...done
In MediaWiki version 1.43.6 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.

Véase también

AltStyle によって変換されたページ (->オリジナル) /