Commit 0079fa19 authored by Matija Čupić's avatar Matija Čupić

Remove cache_sha parameter

parent 2864c1ee
......@@ -41,8 +41,8 @@ module Gitlab
end
end
def self.cache_key_for_project(project, cache_sha = project.commit&.sha)
"#{Gitlab::Redis::Cache::CACHE_NAMESPACE}:projects/#{project.id}/pipeline_status/#{cache_sha}"
def self.cache_key_for_project(project)
"#{Gitlab::Redis::Cache::CACHE_NAMESPACE}:projects/#{project.id}/pipeline_status/#{project.commit&.sha}"
end
def self.update_for_pipeline(pipeline)
......
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