X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/6fb857020092c909043c4521b91a040f3bb16937..91b9b65a413425b2d398516c30566b2203ab8925:/config/environments/production.rb diff --git a/config/environments/production.rb b/config/environments/production.rb index 5e549a91f..457966091 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -16,7 +16,10 @@ config.action_view.cache_template_loading = true # config.logger = SyslogLogger.new # Use a different cache store in production -# config.cache_store = :mem_cache_store +if defined?(MEMCACHE_SERVERS) + MEMCACHE = Memcached::Rails.new(MEMCACHE_SERVERS, :binary_protocol => true) + config.cache_store = :mem_cache_store, MEMCACHE +end # Enable serving of images, stylesheets, and javascripts from an asset server # config.action_controller.asset_host = "http://assets.example.com"