diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-05-05 14:21:57 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-05-08 14:14:41 +0100 |
commit | 1b1a8aab7e7615627a62327e32fe617e90d3571d (patch) | |
tree | b497b7add42086fae241ef32cd94680f1ad86cd4 /config/application.rb | |
parent | a5911f4e36de4bb94689d92aece4b0dc3bd649d7 (diff) |
Make the namespace for memcached dependent on ruby version.
Items cached in 1.8 can't safely be retrieved in 1.9
Diffstat (limited to 'config/application.rb')
-rw-r--r-- | config/application.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb index afbf93445..0763482af 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| |