Page MenuHomeWickedGov Phorge

purgeOldText.php
No OneTemporary

Size
861 B
Referenced Files
None
Subscribers
None

purgeOldText.php

<?php
/**
* Purge old text records from the database
*
* @license GPL-2.0-or-later
* @file
* @ingroup Maintenance
* @author Rob Church <robchur@gmail.com>
*/
use MediaWiki\Maintenance\Maintenance;
// @codeCoverageIgnoreStart
require_once __DIR__ . '/Maintenance.php';
// @codeCoverageIgnoreEnd
/**
* Maintenance script that purges old text records from the database.
*
* @ingroup Maintenance
*/
class PurgeOldText extends Maintenance {
public function __construct() {
parent::__construct();
$this->addDescription( 'Purge old text records from the database' );
$this->addOption( 'purge', 'Performs the deletion' );
}
public function execute() {
$this->purgeRedundantText( $this->hasOption( 'purge' ) );
}
}
// @codeCoverageIgnoreStart
$maintClass = PurgeOldText::class;
require_once RUN_MAINTENANCE_IF_MAIN;
// @codeCoverageIgnoreEnd

File Metadata

Mime Type
text/x-php
Expires
Oct 4 2026, 10:49 (5 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
da/dc/7438901726a0baca7cc380c4844b
Default Alt Text
purgeOldText.php (861 B)

Event Timeline