Manual:purgeExpiredBlocks.php
Appearance
MediaWiki version: | ≥ 1.35 |
MediaWiki file: purgeExpiredBlocks.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.43.0 • 1.42.4 • 1.39.11 |
Classes: | PurgeExpiredBlocks |
Details
[edit]purgeExpiredBlocks.php file is a maintenance script to remove expired blocks from the ipblocks and ipblocks_restrictions tables.
Options/Arguments
[edit]This script does not take any options or arguments.
Usage
[edit]php maintenance/run.php purgeExpiredBlocks
Terminal
$ php maintenance/run.php purgeExpiredBlocks Purging expired blocks... Done purging expired blocks.
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.