From ca280e55ac28aaba42e25c2fe2a4e217ec80222f 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