Refactor memcache connection handling
This commit is contained in:
parent
af13c42322
commit
f778b61c03
6 changed files with 39 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue