Manual:$wgRCMaxAge

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Manual:$wgRCMaxAge and the translation is 33% complete.

Other languages:
Deutsch • ‎English • ‎日本語 • ‎polski • ‎português do Brasil • ‎中文
Recent changes: $wgRCMaxAge
Items in the recentchangesManual:recentchanges table table are periodically purged; entries older than this many seconds will go.
導入されたバージョン: 1.4.0 (r7170)
除去されたバージョン: 使用中
可能な値: 正の整数
既定値: 90 * 24 * 3600 (90 days) since 1.25
13 * 7 * 24 * 3600 (thirteen weeks) from 1.16 to 1.24
7 * 24 * 3600 (seven days) in older versions
他の設定: アルファベット順 | 機能順

詳細

This setting holds the length that recent changes history should be retained for (in seconds).

Whenever anything happens on the wiki (e.g. page edit, move, delete, new user, etc.) a row is added to the recentchangesManual:recentchanges table table giving details about the change. Periodically any entries that are older than the length of time given by this setting are removed from the table, and therefore from the list of recent changes.

If no hook for ArticleEditUpdatesDeleteFromRecentchangesManual:Hooks/ArticleEditUpdatesDeleteFromRecentchanges returns false, there is a 1% chance that the recent changes table will be purged.

Changing this value won't suddenly allow you to see more entries on the recent changes page, as the changes have already been removed from the table. However any entries that are still in the table will not expire until the new limit is reached and the changes get purged. If you want to re-populate the recentchanges table having changed this setting, then you need to run maintenance/rebuildrecentchanges.phpManual:rebuildrecentchanges.php.

Setting $wgRCMaxAge to a value such that $wgDefaultUserOptionsManual:$wgDefaultUserOptions['rcdays'] > ceil($wgRCMaxAge/24*3600) (i.e. setting the default number of days to display to be greater than the number of days to retain) may trigger errors on the wiki, such as when viewing user preferences pages.

影響を受けるページ

This parameter affects recent changes, related changes, watchlists, and list of new pages, but not history and user contributions pages.

関連項目