This commit is contained in:
albert
2013-03-15 11:05:39 -04:00
parent a30cdb0b9c
commit 15d565b455
2 changed files with 2 additions and 2 deletions

View File

@@ -3,6 +3,6 @@ class DailyMaintenance
PostPruner.new.prune!
Upload.delete_all(['created_at < ?', 1.day.ago])
ModAction.delete_all(['created_at < ?', 3.days.ago])
Delayed::Job.destroy_all(['created_at < ?'], 1.day.ago)
Delayed::Job.delete_all(['created_at < ?'], 1.day.ago)
end
end

View File

@@ -19,7 +19,7 @@ every 1.day, :at => "1:00 am" do
end
every 1.day, :at => "2:00 am" do
command "psql --set statement_timeout=0 -hdbserver -c \"vacuum analyze verbose;\" danbooru2"
command "psql --set statement_timeout=0 -hdbserver -c \"vacuum analyze;\" danbooru2"
end
if environment == "production"