Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-06-18 21:10:13 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-18 21:10:13 +0300
commitdd6e32bf47776514b8fe2abcfe7998503f16baab (patch)
treef47d5c93958146fcfc6dd0dba3a6e11a2f8061ab /lib/gitlab/cache
parentc8cc2fe990c52cabcb9912b2b01b5bf16b33d88f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/cache')
-rw-r--r--lib/gitlab/cache/ci/project_pipeline_status.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/gitlab/cache/ci/project_pipeline_status.rb b/lib/gitlab/cache/ci/project_pipeline_status.rb
index 9e958eb52fb..137f76bc96d 100644
--- a/lib/gitlab/cache/ci/project_pipeline_status.rb
+++ b/lib/gitlab/cache/ci/project_pipeline_status.rb
@@ -50,8 +50,6 @@ module Gitlab
def load_status
return if loaded?
- return unless Gitlab::Ci::Features.pipeline_status_omit_commit_sha_in_cache_key?(project) || commit
-
if has_cache?
load_from_cache
else
@@ -119,11 +117,7 @@ module Gitlab
end
def cache_key
- if Gitlab::Ci::Features.pipeline_status_omit_commit_sha_in_cache_key?(project)
- "#{Gitlab::Redis::Cache::CACHE_NAMESPACE}:project:#{project.id}:pipeline_status"
- else
- "#{Gitlab::Redis::Cache::CACHE_NAMESPACE}:project:#{project.id}:pipeline_status:#{commit&.sha}"
- end
+ "#{Gitlab::Redis::Cache::CACHE_NAMESPACE}:project:#{project.id}:pipeline_status"
end
def commit