Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5988380
purgeExpiredBlocks.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
849 B
Referenced Files
None
Subscribers
None
purgeExpiredBlocks.php
View Options
<?php
/**
* @license GPL-2.0-or-later
* @file
*/
use
MediaWiki\Maintenance\Maintenance
;
// @codeCoverageIgnoreStart
require_once
__DIR__
.
'/Maintenance.php'
;
// @codeCoverageIgnoreEnd
/**
* Remove expired blocks from the block and ipblocks_restrictions tables
*
* @since 1.35
* @ingroup Maintenance
* @author DannyS712
*/
class
PurgeExpiredBlocks
extends
Maintenance
{
public
function
__construct
()
{
parent
::
__construct
();
$this
->
addDescription
(
'Remove expired blocks.'
);
}
public
function
execute
()
{
$this
->
output
(
"Purging expired blocks...
\n
"
);
$this
->
getServiceContainer
()->
getDatabaseBlockStore
()->
purgeExpiredBlocks
();
$this
->
output
(
"Done purging expired blocks.
\n
"
);
}
}
// @codeCoverageIgnoreStart
$maintClass
=
PurgeExpiredBlocks
::
class
;
require_once
RUN_MAINTENANCE_IF_MAIN
;
// @codeCoverageIgnoreEnd
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Oct 4, 00:47 (3 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a6/34/b015b643e62285fa4c82441a61d1
Default Alt Text
purgeExpiredBlocks.php (849 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment