mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
PERF: stop featuring users on categories
(this feature has long been removed, no need to run expensive queries every 15 minutes)
This commit is contained in:
@@ -11,7 +11,6 @@ class CategoryFeaturedTopic < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
Category.select(:id, :topic_id).find_each do |c|
|
Category.select(:id, :topic_id).find_each do |c|
|
||||||
CategoryFeaturedTopic.feature_topics_for(c, current[c.id] || [])
|
CategoryFeaturedTopic.feature_topics_for(c, current[c.id] || [])
|
||||||
CategoryFeaturedUser.feature_users_in(c.id)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user