From 29957347625a704af385ea2e7c0fb29190b72253 Mon Sep 17 00:00:00 2001 From: rgarcia Date: Thu, 5 Jul 2018 15:39:38 +0200 Subject: [PATCH] Increase max cache size to 2MB We have lots of votes in this edition of participatory budgets and the default cache size (1MB) is not enough to hold certain cache fragments --- config/environments/preproduction.rb | 2 +- config/environments/production.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/environments/preproduction.rb b/config/environments/preproduction.rb index 692b90c51..3750a21d0 100644 --- a/config/environments/preproduction.rb +++ b/config/environments/preproduction.rb @@ -55,7 +55,7 @@ Rails.application.configure do # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) # Use a different cache store in production. - config.cache_store = :dalli_store + config.cache_store = :dalli_store, { value_max_bytes: 2000000 } # Enable serving of images, stylesheets, and JavaScripts from an asset server. # config.action_controller.asset_host = 'http://assets.example.com' diff --git a/config/environments/production.rb b/config/environments/production.rb index 9ca195dd7..60ab4fdf3 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -55,7 +55,7 @@ Rails.application.configure do # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) # Use a different cache store in production. - config.cache_store = :dalli_store + config.cache_store = :dalli_store, { value_max_bytes: 2000000 } # Enable serving of images, stylesheets, and JavaScripts from an asset server. # config.action_controller.asset_host = 'http://assets.example.com'