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:
Sam Saffron 2016-07-16 15:33:57 +10:00
parent 6777bd2629
commit 4cef1c1750

View file

@ -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