From 15a95a3bf5ccb2e8b414304d0734e2f40609e3aa Mon Sep 17 00:00:00 2001 From: Pau Perez Date: Fri, 8 Mar 2019 12:57:54 +0100 Subject: [PATCH] Use :file_store cache store in development :memory_store uses the process' memory and therefore, what the background job writes is not reachable for the rails server process when it reads from the cache. See https://github.com/openfoodfoundation/openfoodnetwork/wiki/Products-cache#development. --- config/environments/development.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index 3e43ab7823..3ec137a12a 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -5,7 +5,9 @@ Openfoodnetwork::Application.configure do # every request. This slows down response time but is perfect for development # since you don't have to restart the web server when you make code changes. config.cache_classes = false - config.cache_store = :memory_store + + # :file_store is used by default when no cache store is specifically configured. + # config.cache_store = :file_store # Enable cache instrumentation, which is disabled by default ActiveSupport::Cache::Store.instrument = true