]> git.openstreetmap.org Git - rails.git/blobdiff - config/environments/production.rb
Drop memcached and use dalli as the memcache client
[rails.git] / config / environments / production.rb
index 35222bd07ac011cceb41c3e38826e1e158adb9f8..b47013a8a89f4be917f2767f0e8acae34c22fe6f 100644 (file)
@@ -58,7 +58,7 @@ OpenStreetMap::Application.configure do
 
   # Use a different cache store in production.
   if defined?(MEMCACHE_SERVERS)
-    config.cache_store = :mem_cache_store, MemCache.new(:namespace => "rails:cache", :no_block => true, :buffer_requests => true, :noreply => true)
+    config.cache_store = :mem_cache_store, MEMCACHE_SERVERS, { :namespace => "rails:cache" }
   end
 
   # Enable serving of images, stylesheets, and JavaScripts from an asset server.