summaryrefslogtreecommitdiff
path: root/config/environments
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-04-15 12:11:13 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-04-15 15:53:14 +0200
commit8d78662e69a11dc82916793d97aba36dacae1440 (patch)
tree485de34ae849b44d923d5df9f6227e9219f8d116 /config/environments
parent0d3ba71bcb92218585988ca1b9f863a796d6e168 (diff)
downloadgitlab-ce-8d78662e69a11dc82916793d97aba36dacae1440.tar.gz
Give the Rails cache its own Redis namespace
Before this change, Rails cache data was stored in a global Redis namespace. As a consequence, clearing the Rails cache (`rake cache:clear`) would also delete all Sidekiq queue data and session storage. This change puts all Rails cache data in a `cache:gitlab` namespace, making `rake cache:clear` safe again.
Diffstat (limited to 'config/environments')
-rw-r--r--config/environments/production.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index ad3c03d8fc9..47f7e17aeb6 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -53,7 +53,7 @@ Gitlab::Application.configure do
else
"redis://localhost:6379"
end
- config.cache_store = :redis_store, resque_url
+ config.cache_store = :redis_store, resque_url, {namespace: 'cache:gitlab'}
# Enable serving of images, stylesheets, and JavaScripts from an asset server
# config.action_controller.asset_host = "http://assets.example.com"