mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user