Mercurial > rsstweet
diff config/application.rb @ 28:03f904c070f7
Basic caching support.
author | edogawaconan <me@myconan.net> |
---|---|
date | Sat, 06 Sep 2014 00:46:25 +0900 |
parents | 157f7fd136fc |
children | 9defe1ae5814 |
line wrap: on
line diff
--- a/config/application.rb Sat Sep 06 00:08:18 2014 +0900 +++ b/config/application.rb Sat Sep 06 00:46:25 2014 +0900 @@ -27,5 +27,9 @@ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.default_locale = :de config.middleware.delete "ActionDispatch::Cookies" + + if ENV["RT_MEMCACHED_SERVERS"] + config.cache_store = :mem_cache_store, ENV["RT_MEMCACHED_SERVERS"].split(","), { :namespace => "rsstweet" } + end end end