Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

set redis cache expiry to 24 hours

  • Loading branch information...
commit c9e7c9288251440d9f93ea4e0ba147634df1dad4 1 parent d949bcc
@benilovj benilovj authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  config/application.rb
View
2  config/application.rb
@@ -49,7 +49,7 @@ class Application < Rails::Application
# Enable escaping HTML in JSON.
config.active_support.escape_html_entities_in_json = true
- config.cache_store = :redis_store, "redis://#{ENV['REDIS_HOST'] || 'localhost:6379'}"
+ config.cache_store = :redis_store, "redis://#{ENV['REDIS_HOST'] || 'localhost:6379'}", { expires_in: 24.hours }
# Use SQL instead of Active Record's schema dumper when creating the database.
# This is necessary if your schema can't be completely dumped by the schema dumper,
Please sign in to comment.
Something went wrong with that request. Please try again.