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