DiffKeepDays
<< Change Summary | Cookbook-V1 | Expire Diff >>
Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
Question
How do I change the number of days a page's revision history is kept?
Answer
The $DiffKeepDays
variable sets the minimum length of time that a page's revision history is kept. By default it is set to 3650 days, or a little less than ten years. You can change this value in a customization file to be something smaller, e.g.:
$DiffKeepDays
= 30; # keep revisions at least 30 days
Note that a specific page revision isn't removed from the page until the first edit after the time specified by $DiffKeepDays
has elapsed. Thus, it's still possible for some pages to have revisions older than $DiffKeepDays
-- such revisions will be removed the next time those pages are edited.
Contributors
- Pm, 3-Mar-2004
pmwiki-2.3.38 -- Last modified by {{Pm}}