Manual:purgeExpiredWatchlistItems.php

From mediawiki.org
Jump to navigation Jump to search

Template:MW file/noslash

MediaWiki version:
1.35

purgeExpiredWatchlistItems.php is a maintenance script used to delete expired rows from the watchlist and watchlist_expiry database tables.

It doesn't have any of its own parameters, and the most useful of the generic parameters is probably --batch-size, which determines how many rows will be deleted on each run (defaults to 500).

For complete usage details, run: php maintenance/purgeExpiredWatchlistItems.php --help

An error is thrown if $wgWatchlistExpiry is not true.

See also[edit]