25require_once __DIR__ .
'/Maintenance.php';
36 parent::__construct();
37 $this->
addDescription(
'Clear all interwiki links for all languages from the cache' );
44 $prefixes = $dbr->newSelectQueryBuilder()
45 ->select(
'iw_prefix' )
47 ->caller( __METHOD__ )
50 foreach ( $prefixes as $prefix ) {
51 $this->
output(
"...$prefix\n" );
52 $lookup->invalidateCache( $prefix );
60require_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.
getServiceContainer()
Returns the main service container.
addDescription( $text)
Set the description text.