Summary: Talk page for PageHistory. This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.

Preventing history

How do I prevent saving history data for a specific page?
I have some "temp", "stuff", ... pages, where I don't need a history.
There is no (:nohistory:) on PageDirectives
bttr January 06, 2018, at 04:06 PM

See Cookbook:ExpireDiff, or you can simply place in local/TempGroup.php or local/Group.TempPage.php the following line:

  $DiffKeepDays = $DiffKeepNum = -1;

See also the documentation for $DiffKeepDays, $DiffKeepNum and GroupCustomizations for the per-page and per-group variables, add-ons and styles. --Petko

I tried the local/Group.TempPage.php variant, i.e., local/Main.HomePage.php in my test environment, and works nicely. Thanks!
bttr January 08, 2018, at 02:13 PM

I noticed, that csum= and AllRecentChanges are still updated. Is that by design or did you miss?
bttr January 08, 2018, at 02:43 PM

Copied from my mailing list reply with additions: To prevent logging to AllRecentChanges from a specific page or group, place in local/Group.php or local/Group.Page.php such a line:


To also prevent logging in the Group.RecentChanges page:


If you use a recipe that modifies or includes other RecentChanges pages ($RecentChangesFmt), e.g., LocalTimes and AuthorContribution, unset the modified or new entries after you have included all these recipes.

To blank the change summary (after any recipe or skin that may change this):

  $_REQUEST['csum'] = $ChangeSummary = '';

See also $EnableDraftAtomicDiff (option for Drafts, to drop intermediate history between published versions of a page).

Both the RecentChanges entries and the last change summary are about the latest edit of the page, not about the previous edits (history), but you are correct that they may be considered parts of the history even if PmWiki handles these separately. --Petko January 09, 2018, at 03:36 PM

This is a talk page for improving PmWiki.PageHistory.