diff --git a/config/environments/production.rb b/config/environments/production.rb index d7172ea41..340573921 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -55,7 +55,7 @@ :redis_cache_store, { url: ENV["REDIS_URL"], driver: :hiredis, - namespace: ENV["CACHE_NAMESPACE"] + namespace: ENV["CACHE_NAMESPACE"], } # Use a real queuing backend for Active Job (and separate queues per environment). @@ -77,7 +77,7 @@ authentication: "plain", enable_starttls_auto: true, open_timeout: 5, - read_timeout: 5 + read_timeout: 5, } # Enable locale fallbacks for I18n (makes lookups for any locale fall back to @@ -103,9 +103,11 @@ # Do not dump schema after migrations. config.active_record.dump_schema_after_migration = false + client = Dalli::Client.new(ENV["MEMCACHED_URL"], + value_max_bytes: 10485760) config.action_dispatch.rack_cache = { verbose: true, - metastore: File.join(ENV["MEMCACHED_URL"], "meta"), - entitystore: File.join(ENV["MEMCACHED_URL"], "body") + metastore: client, + entitystore: client, } end