daily maintenance: remove dead tag pruner code.
This commit is contained in:
@@ -16,10 +16,8 @@ class DailyMaintenance
|
|||||||
def run
|
def run
|
||||||
ActiveRecord::Base.connection.execute("set statement_timeout = 0")
|
ActiveRecord::Base.connection.execute("set statement_timeout = 0")
|
||||||
PostPruner.new.prune!
|
PostPruner.new.prune!
|
||||||
TagPruner.new.prune!
|
|
||||||
Upload.where('created_at < ?', 1.day.ago).delete_all
|
Upload.where('created_at < ?', 1.day.ago).delete_all
|
||||||
Delayed::Job.where('created_at < ?', 45.days.ago).delete_all
|
Delayed::Job.where('created_at < ?', 45.days.ago).delete_all
|
||||||
#ForumPostVote.where("created_at < ?", 90.days.ago).delete_all
|
|
||||||
PostVote.prune!
|
PostVote.prune!
|
||||||
CommentVote.prune!
|
CommentVote.prune!
|
||||||
ApiCacheGenerator.new.generate_tag_cache
|
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