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-05 14:28:17 +0100 |
commit | 27e518b20d153fd9e63ee868cf4940261d34d66c (patch) | |
tree | a097e2ea55941292642d3f2e80c1232ffa5ee108 | |
parent | 8cfea04b6e3dfed3c49f8e9f11d142c7471d414b (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.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/application.rb b/config/application.rb index 472077f06..46c4eb93b 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| |