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:
authorRobert Speicher <robert@gitlab.com>2017-12-19 19:23:00 +0300
committerRobert Speicher <robert@gitlab.com>2017-12-19 19:23:00 +0300
commitac22576d80b6d043c4991ad39172976566465693 (patch)
tree06b4041a313cfabab35373c765cec56566000cb0 /app/workers
parent4e60b4f1cdfa7dc3524d17bf313d348758950ecf (diff)
parentc6edae38870a4228e3b964d647b9ef588df11f27 (diff)
Merge branch 'zj-gitaly-pipelines-n-1' into 'master'
Improve performance of Pipelines#index.json See merge request gitlab-org/gitlab-ce!14846
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/expire_pipeline_cache_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/expire_pipeline_cache_worker.rb b/app/workers/expire_pipeline_cache_worker.rb
index 3e34de22c19..db73d37868a 100644
--- a/app/workers/expire_pipeline_cache_worker.rb
+++ b/app/workers/expire_pipeline_cache_worker.rb
@@ -13,7 +13,7 @@ class ExpirePipelineCacheWorker
store.touch(project_pipelines_path(project))
store.touch(project_pipeline_path(project, pipeline))
- store.touch(commit_pipelines_path(project, pipeline.commit)) if pipeline.commit
+ store.touch(commit_pipelines_path(project, pipeline.commit)) unless pipeline.commit.nil?
store.touch(new_merge_request_pipelines_path(project))
each_pipelines_merge_request_path(project, pipeline) do |path|
store.touch(path)