maintenance: prune posts hourly instead of daily.

This commit is contained in:
evazion
2020-08-07 09:10:00 -05:00
parent 3b73861d05
commit 8917cc3035
2 changed files with 6 additions and 4 deletions

View File

@@ -3,10 +3,10 @@ module DanbooruMaintenance
def hourly
safely { Upload.prune! }
safely { PostPruner.prune! }
end
def daily
safely { PostPruner.prune! }
safely { Delayed::Job.where('created_at < ?', 45.days.ago).delete_all }
safely { PostDisapproval.prune! }
safely { regenerate_post_counts! }