Skip to content

Instantly share code, notes, and snippets.

@nilsandrey
Last active June 9, 2021 14:00
Show Gist options
  • Save nilsandrey/57401f4b472647014a02e426e86fed5e to your computer and use it in GitHub Desktop.
Save nilsandrey/57401f4b472647014a02e426e86fed5e to your computer and use it in GitHub Desktop.
# Define cache store
# config.cache_store = :mem_cache_store
if ENV["REDIS_URL"].present?
config.cache_store = :redis_cache_store, { url: ENV["REDIS_URL"] }
else
config.cache_store = :file_store, "tmp/cache"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment