diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-04-09 15:41:55 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-04-10 15:57:00 +0300 |
commit | 4b30aec0aa9e52d3d7d4394f05a725d14e0c0db3 (patch) | |
tree | 7fc3713103151a70d08404fa0b48a49b25dfa026 /lib/gitlab/cache | |
parent | de36ca81d35992c265cd4fd09c774cb793dbd246 (diff) |
Allow `rake cache:clear` clearing pipeline status cache
* Use the correct key prefix
* Clear old cache keys
TODO:
At some point we could remove clearing old cache keys.
Diffstat (limited to 'lib/gitlab/cache')
-rw-r--r-- | lib/gitlab/cache/ci/project_pipeline_status.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/cache/ci/project_pipeline_status.rb b/lib/gitlab/cache/ci/project_pipeline_status.rb index dba37892863..add048d671e 100644 --- a/lib/gitlab/cache/ci/project_pipeline_status.rb +++ b/lib/gitlab/cache/ci/project_pipeline_status.rb @@ -40,7 +40,7 @@ module Gitlab end def self.cache_key_for_project(project) - "projects/#{project.id}/pipeline_status" + "#{Gitlab::Redis::Cache::CACHE_NAMESPACE}:projects/#{project.id}/pipeline_status" end def self.update_for_pipeline(pipeline) |