blob: 9b77c554908dfcd313032d0d8acb485172166c65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
class Admin::CohortsController < Admin::ApplicationController
def index
if current_application_settings.usage_ping_enabled
cohorts_results = Rails.cache.fetch('cohorts', expires_in: 1.day) do
CohortsService.new.execute
end
@cohorts = CohortsSerializer.new.represent(cohorts_results)
end
end
end
|