X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/696fbb4e16c13f8f86134ad5c029644a5277a373..2fd52ddf6024ebdbebf451524836e67f7b4f07a2:/config/environments/production.rb?ds=sidebyside 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"