diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-18 21:10:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-18 21:10:13 +0300 |
commit | dd6e32bf47776514b8fe2abcfe7998503f16baab (patch) | |
tree | f47d5c93958146fcfc6dd0dba3a6e11a2f8061ab /lib/gitlab/cache | |
parent | c8cc2fe990c52cabcb9912b2b01b5bf16b33d88f (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.rb | 8 |
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 |