]> git.openstreetmap.org Git - rails.git/commitdiff
Pipeline memcache requests to the cache
authorTom Hughes <tom@compton.nu>
Thu, 23 Feb 2012 21:43:14 +0000 (21:43 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 27 Feb 2012 09:01:48 +0000 (09:01 +0000)
config/environments/production.rb

index e517d224540d65db2fdd244de4c4fdcbd6d336fa..56c33ec98398d160f952639c76e8437c806b6e70 100644 (file)
@@ -49,7 +49,7 @@ OpenStreetMap::Application.configure do
 
   # Use a different cache store in production
   if defined?(MEMCACHE_SERVERS)
 
   # Use a different cache store in production
   if defined?(MEMCACHE_SERVERS)
-    config.cache_store = :mem_cache_store, MemCache.new(:namespace => "rails:cache")
+    config.cache_store = :mem_cache_store, MemCache.new(:namespace => "rails:cache", :no_block => true, :buffer_requests => true, :noreply => true)
   end
 
   # Enable serving of images, stylesheets, and JavaScripts from an asset server
   end
 
   # Enable serving of images, stylesheets, and JavaScripts from an asset server