Refactor memcache connection handling

This commit is contained in:
Tom Hughes 2012-02-23 11:16:08 +00:00
parent af13c42322
commit f778b61c03
6 changed files with 39 additions and 21 deletions

View 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