Use memory cache-store when profiling

Or you want see any change when playing fragment-caching or other caching
strategies.
This commit is contained in:
Pau Perez
2020-04-10 12:47:47 +02:00
parent de8d8e658c
commit 2d9b41729e

View File

@@ -11,7 +11,7 @@ Openfoodnetwork::Application.configure do
config.cache_classes = !!ENV["PROFILE"]
# :file_store is used by default when no cache store is specifically configured.
# config.cache_store = :file_store
config.cache_store = :memory_store if !!ENV["PROFILE"]
# Log error messages when you accidentally call methods on nil.
config.whiny_nils = true