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