Manual:purgeExpiredWatchlistItems.php

This page is a translated version of the page Manual:PurgeExpiredWatchlistItems.php and the translation is 75% complete.
Other languages:
MediaWiki バージョン:
1.35

詳細

purgeExpiredWatchlistItems.php is a maintenance script that deletes expired rows from the watchlist and watchlist_expiry database tables.

オプション

This script 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).

使用法

php maintenance/purgeExpiredWatchlistItems.php
Terminal
$ php maintenance/purgeExpiredWatchlistItems.php

7 expired watchlist entries found.
All expired entries purged.

よくあるエラー

Watchlist expiry is not enabled.

An error is thrown if $wgWatchlistExpiry is not true. Set $wgWatchlistExpiry = true; to enable.

関連項目