Move memcached for caching if enabled regardless of environment

This commit is contained in:
Tom Hughes 2015-02-22 19:10:15 +00:00
parent 00e1deeb86
commit 9e160ec176
2 changed files with 6 additions and 3 deletions

View file

@ -58,9 +58,7 @@ OpenStreetMap::Application.configure do
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
# Use a different cache store in production.
if defined?(MEMCACHE_SERVERS)
config.cache_store = :mem_cache_store, MEMCACHE_SERVERS, { :namespace => "rails:cache" }
end
# config.cache_store = :mem_cache_store
# Configure caching of static assets
config.action_controller.page_cache_directory = Rails.public_path