Manual:pruneUnusedLinkTargetRows.php
Appearance
MediaWiki version: | ≥ 1.18 |
MediaWiki file: pruneUnusedLinkTargetRows.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.42.4 • 1.41.5 • 1.39.11 |
Classes: | PruneUnusedLinkTargetRows |
Details
[edit]pruneUnusedLinkTargetRows.php file is a maintenance script to prune unused rows in linktarget table.
Options/Arguments
[edit]Option | Description | Default | Required? |
---|---|---|---|
--sleep | Sleep time (in seconds) between every batch. | 0 | Optional |
--start | Start after this lt_id |
Optional |
Usage
[edit]php maintenance/run.php pruneUnusedLinkTargetRows [ --sleep seconds ] [ --start lt_id ]
Terminal
$ php maintenance/run.php pruneUnusedLinkTargetRows Deleting unused linktarget rows... Checking lt_id between 0 and 51... ... Completed clean up linktarget table, 513 rows deleted.
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
.