fixes #1305
This commit is contained in:
@@ -8,6 +8,7 @@ class DailyMaintenance
|
||||
Delayed::Job.delete_all(['created_at < ?', 1.day.ago])
|
||||
PostVote.delete_all(['created_at < ?', 1.month.ago])
|
||||
TagSubscription.process_all
|
||||
ApiCacheGenerator.new.generate_tag_cache
|
||||
prune_ad_hits
|
||||
end
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
class WeeklyMaintenance
|
||||
def run
|
||||
ActiveRecord::Base.connection.execute("set statement_timeout = 0")
|
||||
ApiCacheGenerator.new.generate_tag_cache
|
||||
UserPasswordResetNonce.prune!
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user