diff options
-rw-r--r-- | app/controllers/admin/user_cohorts_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/admin/user_cohorts_controller.rb b/app/controllers/admin/user_cohorts_controller.rb index 5dd6eedfb06..1d9e3547807 100644 --- a/app/controllers/admin/user_cohorts_controller.rb +++ b/app/controllers/admin/user_cohorts_controller.rb @@ -1,7 +1,9 @@ class Admin::UserCohortsController < Admin::ApplicationController def index if ApplicationSetting.current.usage_ping_enabled - @cohorts = UserCohortsService.new.execute(12) + @cohorts = Rails.cache.fetch('user_cohorts', expires_in: 1.day) do + UserCohortsService.new.execute + end end end end |