]> git.openstreetmap.org Git - rails.git/blobdiff - config/environments/production.rb
Refactor memcache connection handling
[rails.git] / config / environments / production.rb
index 95b45339ccdc4fffd9fec60d3c7cdc56f72dfa02..e517d224540d65db2fdd244de4c4fdcbd6d336fa 100644 (file)
@@ -49,8 +49,7 @@ OpenStreetMap::Application.configure do
 
   # Use a different cache store in production
   if defined?(MEMCACHE_SERVERS)
-    MEMCACHE = Memcached::Rails.new(MEMCACHE_SERVERS, :binary_protocol => true)
-    config.cache_store = :mem_cache_store, MEMCACHE
+    config.cache_store = :mem_cache_store, MemCache.new(:namespace => "rails:cache")
   end
 
   # Enable serving of images, stylesheets, and JavaScripts from an asset server