addDescription( 'Purge rows from the recentchanges table which are older than wgRCMaxAge.' ); } public function execute() { // Run directly instead of pushing to the job queue, so that the script will exit only once the // purge is complete. If a job is already running to do the purge, then the script will exit early. // However, this is fine because a purge is already in progress. $recentChangesPruneJob = RecentChangesUpdateJob::newPurgeJob(); $recentChangesPruneJob->run(); $this->output( "Finished purging data from recentchanges.\n" ); } } // @codeCoverageIgnoreStart $maintClass = PurgeRecentChanges::class; require_once RUN_MAINTENANCE_IF_MAIN; // @codeCoverageIgnoreEnd