daily maintenance: remove dead tag pruner code.
This commit is contained in:
@@ -16,10 +16,8 @@ class DailyMaintenance
|
||||
def run
|
||||
ActiveRecord::Base.connection.execute("set statement_timeout = 0")
|
||||
PostPruner.new.prune!
|
||||
TagPruner.new.prune!
|
||||
Upload.where('created_at < ?', 1.day.ago).delete_all
|
||||
Delayed::Job.where('created_at < ?', 45.days.ago).delete_all
|
||||
#ForumPostVote.where("created_at < ?", 90.days.ago).delete_all
|
||||
PostVote.prune!
|
||||
CommentVote.prune!
|
||||
ApiCacheGenerator.new.generate_tag_cache
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
class TagPruner
|
||||
def prune!
|
||||
Tag.without_timeout do
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user