Mercurial > rsstweet
diff config/application.rb @ 226:cf3ebc67dab1
Use rails builtin redis cache
author | nanaya <me@nanaya.pro> |
---|---|
date | Tue, 25 Jan 2022 02:39:04 +0900 |
parents | ad6264cca788 |
children | 01f3a7e073c3 |
line wrap: on
line diff
--- a/config/application.rb Tue Jan 25 02:38:40 2022 +0900 +++ b/config/application.rb Tue Jan 25 02:39:04 2022 +0900 @@ -43,7 +43,7 @@ config.session_store :disabled if $cfg[:redis_server] - config.cache_store = :redis_store, "#{$cfg[:redis_server]}/cache_store", { :expires_in => 12.hours } + config.cache_store = :redis_cache_store, { url: "#{$cfg[:redis_server]}/cache_store" } end end end