[pmwiki-users] what about "purge" actions ?

Ben Wilson dausha at gmail.com
Mon May 28 22:03:00 CDT 2007


Somewhere I have a script that trolls wiki.d and prunes out these
files based on timeframe. This is external to PmWiki, but works quite
nicely as a weekly cron application. I'll have to hunt it down.

Ben

On 5/28/07, Christophe David <pmwiki at christophedavid.org> wrote:
> Typical PmWiki wiki.d directories tend to become full of "deleted"
> pages, especially when expirediff is used to do some cleanup.
>
> Wouldn't it be useful to provide "maintenance actions" like
>
> action=PurgeDeletedPages
> action=PurgeHTMLcache
> action=PurgePageListscache
>
> restricted by default to administrators.
>
> As the pages are marked with a timestamp indicating when their status
> changed, "minimal lifetime" variables could be provided too, like
>
> $PurgeDeletedPagesMinimumDays
> $PurgeHTMLcacheMinimumDays
> $PurgePageListscacheMinimumDays
>
> to specify how old the files must be to be deleted.
>
> Furthermore, these actions could be triggered automatically after some
> configurable time so that PmWiki directories would be automatically
> cleaned-up up after some time.
>
> Any thoughts ?
>
> Christophe
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>


-- 
Ben Wilson
"Words are the only thing which will last forever" Churchill



More information about the pmwiki-users mailing list