Move memcached for caching if enabled regardless of environment
This commit is contained in:
parent
00e1deeb86
commit
9e160ec176
2 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue