Commit e6571ed9 authored by Toon Claes's avatar Toon Claes Committed by Kamil Trzcinski

Check if a commit belongs to pipeline before trying to expire cache

parent f66e1c17
......@@ -7,7 +7,7 @@ module Ci
store = Gitlab::EtagCaching::Store.new
store.touch(project_pipelines_path)
store.touch(commit_pipelines_path)
store.touch(commit_pipelines_path) if pipeline.commit
store.touch(new_merge_request_pipelines_path)
merge_requests_pipelines_paths.each { |path| store.touch(path) }
end
......
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