From 4cef1c175038b489731ea38444c86f5257e55698 Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Sat, 16 Jul 2016 15:33:57 +1000 Subject: [PATCH] PERF: stop featuring users on categories (this feature has long been removed, no need to run expensive queries every 15 minutes) --- app/models/category_featured_topic.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/models/category_featured_topic.rb b/app/models/category_featured_topic.rb index 4f3404ab2..caed542a6 100644 --- a/app/models/category_featured_topic.rb +++ b/app/models/category_featured_topic.rb @@ -11,7 +11,6 @@ class CategoryFeaturedTopic < ActiveRecord::Base end Category.select(:id, :topic_id).find_each do |c| CategoryFeaturedTopic.feature_topics_for(c, current[c.id] || []) - CategoryFeaturedUser.feature_users_in(c.id) end end end