Mercurial > rsstweet
comparison 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 |
comparison
equal
deleted
inserted
replaced
225:782fece93768 | 226:cf3ebc67dab1 |
---|---|
41 config.middleware.delete ActionDispatch::RemoteIp | 41 config.middleware.delete ActionDispatch::RemoteIp |
42 | 42 |
43 config.session_store :disabled | 43 config.session_store :disabled |
44 | 44 |
45 if $cfg[:redis_server] | 45 if $cfg[:redis_server] |
46 config.cache_store = :redis_store, "#{$cfg[:redis_server]}/cache_store", { :expires_in => 12.hours } | 46 config.cache_store = :redis_cache_store, { url: "#{$cfg[:redis_server]}/cache_store" } |
47 end | 47 end |
48 end | 48 end |
49 end | 49 end |