aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-05-05 14:21:57 +0100
committerLouise Crow <louise.crow@gmail.com>2015-05-05 14:21:57 +0100
commit751bd3df3b6b28275e0ac9f6b1663c1df84d007f (patch)
tree145151ac3b0d1ed71aab0b84fdb8c0093cf3fc41
parent823e58dc69960c600230b10604a0051359173f85 (diff)
Make the namespace for memcached dependent on ruby version.
Items cached in 1.8 can't safely be retrieved in 1.9
-rw-r--r--config/application.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb
index 366077795..0fcd7a4d7 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -60,7 +60,8 @@ module Alaveteli
config.time_zone = ::AlaveteliConfiguration::time_zone
# Set the cache to use a memcached backend
- config.cache_store = :mem_cache_store, { :namespace => AlaveteliConfiguration::domain }
+ config.cache_store = :mem_cache_store,
+ { :namespace => "#{AlaveteliConfiguration::domain}_#{RUBY_VERSION}" }
config.action_dispatch.rack_cache = nil
config.after_initialize do |app|