From 9c726fda8c7ac74066197078c6ae3819834440bb Mon Sep 17 00:00:00 2001 From: Jeffrey Warren Date: Tue, 19 May 2020 18:21:40 -0400 Subject: [PATCH] Update stats_controller.rb --- app/controllers/stats_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/stats_controller.rb b/app/controllers/stats_controller.rb index 7ef0f5604b..fa5689abdf 100644 --- a/app/controllers/stats_controller.rb +++ b/app/controllers/stats_controller.rb @@ -1,11 +1,11 @@ class StatsController < ApplicationController def subscriptions - Rails.cache.fetch("stats/subscriptions/query", expires_in: 24.hours) do @tags = TagSelection.where(following: true) .joins("LEFT JOIN community_tags ON community_tags.tid = tag_selections.tid") .joins(:tag) .group("term_data.name") .count +# Rails.cache.fetch("stats/subscriptions/query", expires_in: 24.hours) do # @tags = TagSelection.where(following: true) # .joins("LEFT JOIN community_tags ON community_tags.tid = tag_selections.tid") # .joins(:tag) @@ -14,7 +14,7 @@ def subscriptions # .group("term_data.name") # .count @tags = @tags.group_by { |_k, v| v / 10 } - end +# end end def range