Manual:deleteAutoPatrolLogs.php

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.31
<translate> MediaWiki version:</translate>

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 <translate> task <tvar name=1>T184485</tvar></translate> for discussion.

Options

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

Usage

php maintenance/deleteAutoPatrolLogs.php [ --check-old| --before| --from-id| --sleep| --dry-run ]
Terminal

See also