Use a memory cache store in development #4007
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
References
Background
In commit 574133a 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 eb36b7e, 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.
Objectives
DalliError: No server available
error message