[pmwiki-users] Flexible $DiffKeepDays [was: Urgent -- Memory size exausted - line 660]

Patrick R. Michaud pmichaud at pobox.com
Fri Jun 1 12:40:30 CDT 2007


On Fri, Jun 01, 2007 at 07:09:29PM +0200, kirpi at kirpi.it wrote:
> >But I'm guessing you're asking for something slightly different --
> >i.e., keep a minimum amount of history at all times, and only use
> >the $DiffKeepDays rule when that minimum is exceeded.  Then,
> >presumably, $DiffKeepDays could be kept small but would only
> >affect pages that have lots of changes.
> >
> >That has possibility, but there's still the caveat that if
> >$DiffKeepDays is set too small, then a malicious author could
> >still use a lot of posts to cause history to expire (at least
> >the part that is older than the small value of $DiffKeepDays).
> 
> If we take as an example my own file, it was heavily edited (about 100
> changes each day) since 1 and a half year, steadily, every day. It
> then "exploded".
> I can hardly think of anybody (if not a horde of zombies) making so
> many edits to a single file in a rather short time.
> 
> Thus, let's say that I can now feel rather safe when I say to my
> system: "if any file grows beyond a certain size, then apply
> $DiffKeepDays = 180"
> 
> Do you really think it would be that unsafe?
> To me it looks rather sound, and could save the wiki from "exploding"
> as yesterday happened.

I'm not so sure it would make much of a difference.  What did you have 
$DiffKeepDays set to before the file "exploded"?  What would be the
benefit of

   "if any file grows beyond a certain size, apply $DiffKeepDays=180"

versus simply

   "apply $DiffKeepDays=180"

?



More information about the pmwiki-users mailing list