From e4346261ceff5662c3731e43a07bc76ccbca15c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sun, 10 May 2020 13:59:55 +0200 Subject: [PATCH] Use a memory cache store in development In commit 574133a5 we configured the development to use Dalli to cache pages. However, cache is usually disabled in the development environment. When we upgraded to Rails 5 in commit eb36b7e2, we configured the development environment to enable caching (using a memory store) when a certain file is present, and to disable it when it's not. This configuration makes more sense IMHO, and it was being overwritten by the one previously mentioned. After this change, using memcached is no longer required in the development environment and the `DalliError: No server available` error message is gone. --- config/environments/development.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index 169f4e2cf..0e3e7f9d9 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -60,7 +60,6 @@ Rails.application.configure do # Raises error for missing translations # config.action_view.raise_on_missing_translations = true - config.cache_store = :dalli_store config.action_mailer.preview_path = "#{Rails.root}/spec/mailers/previews" config.after_initialize do