Manual:DeleteAutoPatrolLogs.php

MediaWiki version:
1.31
Category:MediaWiki code#DeleteAutoPatrolLogs.php

Details

deleteAutoPatrolLogs.php is a maintenance script that removes autopatrol logs from the logging table.

Autopatrol logs were permanently disabled in MediaWiki 1.31 because it was considered unnecessary and generated a lot of entries in the already large logging table. See T184485 for discussion.

Options

OptionDescriptionRequiredDefault
--check-oldCheck old patrol logs (for deleting old format autopatrols)Optional
--beforeTimestamp to delete only before that time, all MediaWiki timestamp formats are acceptedOptional
--from-idFirst row (log id) to start updating fromOptional
--sleepSleep time (in seconds) between every batchOptional10
--dry-runPrint debug info instead of actually deletingOptional
--batch-sizeBatch size to process at a timeOptional1000

Usage

php maintenance/run.php deleteAutoPatrolLogs [ --check-old| --before| --from-id| --sleep| --dry-run ]
Terminal
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

See also

Category:Maintenance scripts Category:Logs maintenance scripts
Category:Logs maintenance scripts Category:Maintenance scripts Category:MediaWiki code