Signed-off-by: alanlong9278 <547533434@qq.com>

This commit is contained in:
alanlong9278 2015-05-26 00:01:15 +08:00
parent a27b3e9dc6
commit b1a60d3118
2 changed files with 4 additions and 1 deletions

2
.gitignore vendored
View File

@ -5,7 +5,7 @@
*.swp
/config/database.yml
/config/configuration.yml
/config/additional_environment.rb
/files/*
/log/*
/public/tmp/*

View File

@ -0,0 +1,3 @@
if Rails.env.production?
config.cache_store = :redis_store, 'redis://localhost:6379/0/cache', { expires_in: 90.minutes }
end