From 740645a38b75f000c532cd51fe408d43798b6270 Mon Sep 17 00:00:00 2001 From: Matchu Date: Fri, 28 Jul 2023 15:49:24 -0700 Subject: [PATCH] Update the cache namespace This is recommended by the Rails 4.0 upgrade guide: > The caching method changed between Rails 3.x and 4.0. You should change the cache namespace and roll out with a cold cache. I noticed too that old cache entries with old character encodings were a real problem, so yeah making sure we're working with a cold cache is smart!! --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index fba3b14c..bc014fc3 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -24,7 +24,7 @@ OpenneoImpressItems::Application.configure do # config.logger = SyslogLogger.new # Use a different cache store in production - config.cache_store = :mem_cache_store + config.cache_store = :mem_cache_store, namespace: "openneo-impress-rails" # Disable Rails's static asset server # In production, Apache or nginx will already do this