increase period for deleting mod actions
This commit is contained in:
@@ -4,7 +4,7 @@ class DailyMaintenance
|
|||||||
PostPruner.new.prune!
|
PostPruner.new.prune!
|
||||||
TagPruner.new.prune!
|
TagPruner.new.prune!
|
||||||
Upload.delete_all(['created_at < ?', 1.day.ago])
|
Upload.delete_all(['created_at < ?', 1.day.ago])
|
||||||
ModAction.delete_all(['created_at < ?', 3.days.ago])
|
ModAction.delete_all(['created_at < ?', 30.days.ago])
|
||||||
Delayed::Job.delete_all(['created_at < ?', 7.days.ago])
|
Delayed::Job.delete_all(['created_at < ?', 7.days.ago])
|
||||||
PostVote.prune!
|
PostVote.prune!
|
||||||
CommentVote.prune!
|
CommentVote.prune!
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ if environment == "production"
|
|||||||
runner "PostUpdate.push"
|
runner "PostUpdate.push"
|
||||||
end
|
end
|
||||||
|
|
||||||
every 1.hour do
|
# every 1.hour do
|
||||||
runner "AmazonBackup.execute"
|
# runner "AmazonBackup.execute"
|
||||||
end
|
# end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user