const RUN_MAINTENANCE_IF_MAIN
reopenAndWaitForReplicas()
Re-open any closed db connection, and wait for replicas.
fatalError( $msg, $exitCode=1)
Output a message and terminate the current script.
Maintenance script to update cached special pages.
Abstract maintenance class for quickly writing and churning out maintenance scripts with minimal effo...
This is a class for doing query pages; since they're almost all the same, we factor out some of the f...
addOption( $name, $description, $required=false, $withArg=false, $shortName=false, $multiOccurrence=false)
Add a parameter to the script.
doSpecialPageCacheUpdates( $dbw)
getDB( $db, $groups=[], $dbDomain=false)
Returns a database to be used by current maintenance script.
static getDisabledQueryPages(Config $config)
Get a list of query pages disabled and with it's run mode.
getOption( $name, $default=null)
Get an option, or return the default.
error( $err, $die=0)
Throw an error to the user.
output( $out, $channel=null)
Throw some output to the user.
static getPages()
Get a list of query page classes and their associated special pages, for periodic updates.
hasOption( $name)
Checks to see if a particular option exists.