#8009 Set up maintenance command to clean 'notification' collection

unreleased
open
nobody
docs (17)
General
nobody
2015-10-22
2015-10-22
No

The records in the notification collection do not need to stick around forever. It'd be good to have a paster command to clean up old ones, and documentation about setting up a cron job for it. Even better if we can think of a smart way to handle it automatically within allura, so a cron job wouldn't be necessary. Here's the basic query:

db.notification.remove({pubdate:{$lt: new Date(Date.now() - 1000*60*60*24*31*2)}})

Discussion


Log in to post a comment.