Jump to content
MediaWiki

Manual:deleteAutoPatrolLogs.php

From mediawiki.org
MediaWiki version:
≥ 1.31
MediaWiki file: deleteAutoPatrolLogs.php
Location: maintenance/
Source code: master1.46.01.45.41.43.9
Classes: DeleteAutoPatrolLogs

Details

[edit ]

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

[edit ]
Option Description Required Default
--check-old Check old patrol logs (for deleting old format autopatrols) Optional
--before Timestamp to delete only before that time, all MediaWiki timestamp formats are accepted Optional
--from-id First row (log id) to start updating from Optional
--sleep Sleep time (in seconds) between every batch Optional 10
--dry-run Print debug info instead of actually deleting Optional
--batch-size Batch size to process at a time Optional 1000

Usage

[edit ]
phpmaintenance/run.phpdeleteAutoPatrolLogs[--check-old|--before|--from-id|--sleep|--dry-run]
Terminal
$ php maintenance/run.php deleteAutoPatrolLogs
Processed up to row id 2456.
In MediaWiki version MediaWiki 1.39 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

See also

[edit ]

AltStyle によって変換されたページ (->オリジナル) /