Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6014336
purgeOldText.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
861 B
Referenced Files
None
Subscribers
None
purgeOldText.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment