potential fix for #1305

This commit is contained in:
Albert Yi
2013-04-14 18:22:25 -07:00
parent 96a468b51a
commit f5b0f856d6
4 changed files with 21 additions and 14 deletions

View File

@@ -2,7 +2,7 @@ class DailyMaintenance
def run
ActiveRecord::Base.connection.execute("set statement_timeout = 0")
PostPruner.new.prune!
# TagPruner.new.prune!
TagPruner.new.prune!
Upload.delete_all(['created_at < ?', 1.day.ago])
ModAction.delete_all(['created_at < ?', 3.days.ago])
Delayed::Job.delete_all(['created_at < ?', 1.day.ago])