Commit 690b34fc authored by Vitali Tatarintev's avatar Vitali Tatarintev

Merge branch 'remove-cache_shared_runners_enabled-ff' into 'master'

Remove cache_shared_runners_enabled FF

See merge request gitlab-org/gitlab!81143
parents 61120650 ed2cd315
---
name: cache_shared_runners_enabled
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/68002
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/338267
milestone: '14.2'
type: development
group: group::optimize
default_enabled: true
......@@ -282,13 +282,9 @@ module EE
end
def any_project_with_shared_runners_enabled?
if ::Feature.enabled?(:cache_shared_runners_enabled, self, default_enabled: :yaml)
Rails.cache.fetch([self, :has_project_with_shared_runners_enabled], expires_in: 5.minutes) do
any_project_with_shared_runners_enabled_with_cte?
end
else
any_project_with_shared_runners_enabled_with_cte?
end
end
# These helper methods are required to not break the Namespace API.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment