Manual:$wgRCMaxAge

From MediaWiki.org

Jump to: navigation, search
Recent changes: $wgRCMaxAge
Items in the recentchanges table are periodically purged; entries older than this many seconds will go.
Introduced in version: 1.4.0
Removed in version: still in use
Allowed values: (positive integer)
Default value: 13 * 7 * 24 * 3600 (thirteen weeks) since 1.16.0
7 * 24 * 3600 (seven days) in older versions

Other settings: Alphabetical | By Function


[edit] Details

This setting holds the length of time 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 recentchanges 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.

What this means is that 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.

If you want to re-populate the recentchanges table having changed this setting, then you need to run maintenance/rebuildrecentchanges.php.

[edit] Affected pages

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