CleanUp-Talk

Summary: Talk page for CleanUp.
Maintainer: Petko
Users: +6 (View / Edit)

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

Is it possible to specify separate $CleanUpKeepDays for a group or an individual page? simon August 01, 2012, at 04:47 AM

No. Note that $CleanUpKeepDays only concerns "deleted" pages and uploads, not old versions of existing pages which are kept until the pages exist, for at least $DiffKeepDays days. --Petko August 01, 2012, at 06:06 AM

Thanks, I should have been clearer. I use $UploadPrefixFmt = '/$Group/$Name'; # per-page attachments. I was thinking that for uploads against a group or a page I'd like to have different setting. simon August 01, 2012, at 06:59 PM

It is not impossible, but very impractical. In config.php only include the script. For every wikigroup, create a file local/MyGroup1.php with only its own $CleanUpDirs['uploads/MyGroup1'] and $CleanUpKeepDays and then call [[MyGroup1.AnyPage?action=cleanup]]. Instead of this, I'd suggest setting in config.php the longest $CleanUpKeepDays for all pages. --Petko August 01, 2012, at 07:36 PM


Is

$CleanUpDirs["uploads"] = 1; # cleanup deleted uploads

that same as

$CleanUpDirs[$UploadDir] = 1; # cleanup deleted uploads

and if not shouldn't it be? simon September 11, 2012, at 09:12 PM

Only if $UploadDir is defined before this line, and it generally is not (the default $UploadDir is set in upload.php much later). --Petko September 12, 2012, at 01:31 AM

Talk page for the CleanUp recipe (users).