Manual:PurgeExpiredWatchlistItems.php/pl

Wersja MediaWiki:
1.35
Category:MediaWiki code/pl#PurgeExpiredWatchlistItems.php Category:Maintenance scripts/pl#PurgeExpiredWatchlistItems.php

Details

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

This script should be run periodically, for example, by a cron job. The recommended periodicity is once or twice a day, to account for users on different timezones. For improved site performance, $wgWatchlistPurgeRate can be set to 0.

Options

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

Usage

php maintenance/run.php purgeExpiredWatchlistItems
Terminal
In MediaWiki version 1.39.13 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

Common error

Watchlist expiry is not enabled.

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


Zobacz też

Category:Maintenance scripts/pl#PurgeExpiredWatchlistItems.php Category:User maintenance scripts/pl
Category:Maintenance scripts/pl Category:MediaWiki code/pl Category:MediaWiki code pages without class names/pl Category:User maintenance scripts/pl