Commit c39f6dd8 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Remove preload_repo_cache feature flag

Reduces the number of Redis calls in the Projects API

Changelog: performance
parent e01d7886
---
name: preload_repo_cache
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/69627
rollout_issue_url:
milestone: '14.3'
type: development
group: group::project management
default_enabled: false
......@@ -27,8 +27,6 @@ module API
end
def preload_repository_cache(projects_relation)
return unless Feature.enabled?(:preload_repo_cache, default_enabled: :yaml)
repositories = repositories_for_preload(projects_relation)
Gitlab::RepositoryCache::Preloader.new(repositories).preload( # rubocop:disable CodeReuse/ActiveRecord
......
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