diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-01-04 19:40:07 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-01-04 22:17:03 +0100 |
commit | 8cc14dd5371c33f389211fcee39dbb28686b2021 (patch) | |
tree | 5d112a8a9cc325dd7c781db3a68e5c7cac6889d1 /app | |
parent | 7d7d289b159fba332c68dc66b6f9f3b17428c3a3 (diff) | |
download | gitlab-ce-8cc14dd5371c33f389211fcee39dbb28686b2021.tar.gz |
Rename Project#cache_index to jobs_cache_index
Diffstat (limited to 'app')
-rw-r--r-- | app/models/ci/build.rb | 4 | ||||
-rw-r--r-- | app/services/reset_project_cache_service.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index e4ca74f87f2..ff903a63c54 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -461,8 +461,8 @@ module Ci end def cache - if options[:cache] && project.cache_index - options[:cache].merge(key: "#{options[:cache][:key]}:#{project.cache_index}") + if options[:cache] && project.jobs_cache_index + options[:cache].merge(key: "#{options[:cache][:key]}:#{project.jobs_cache_index}") else [options[:cache]] end diff --git a/app/services/reset_project_cache_service.rb b/app/services/reset_project_cache_service.rb index 0886c6b8315..a162a6eedb9 100644 --- a/app/services/reset_project_cache_service.rb +++ b/app/services/reset_project_cache_service.rb @@ -1,5 +1,5 @@ class ResetProjectCacheService < BaseService def execute - @project.increment!(:cache_index) + @project.increment!(:jobs_cache_index) end end |