2017-08-17 22:00:37 +05:30
|
|
|
class Admin::CohortsController < Admin::ApplicationController
|
|
|
|
def index
|
2018-03-17 18:26:18 +05:30
|
|
|
if Gitlab::CurrentSettings.usage_ping_enabled
|
2017-08-17 22:00:37 +05:30
|
|
|
cohorts_results = Rails.cache.fetch('cohorts', expires_in: 1.day) do
|
|
|
|
CohortsService.new.execute
|
|
|
|
end
|
|
|
|
|
|
|
|
@cohorts = CohortsSerializer.new.represent(cohorts_results)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|