11require_once __DIR__ .
'/Maintenance.php';
22 parent::__construct();
23 $this->
addDescription(
'Clear all interwiki links for all languages from the cache' );
30 $prefixes = $dbr->newSelectQueryBuilder()
31 ->select(
'iw_prefix' )
33 ->caller( __METHOD__ )
36 foreach ( $prefixes as $prefix ) {
37 $this->
output(
"...$prefix\n" );
38 $lookup->invalidateCache( $prefix );
46require_once RUN_MAINTENANCE_IF_MAIN;
Clear the cache of interwiki prefixes.
execute()
Do the actual work.
__construct()
Default constructor.
Abstract maintenance class for quickly writing and churning out maintenance scripts with minimal effo...
output( $out, $channel=null)
Throw some output to the user.
getReplicaDB(string|false $virtualDomain=false)
getServiceContainer()
Returns the main service container.
addDescription( $text)
Set the description text.