comparison 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
comparison
equal deleted inserted replaced
27:efc548be0a3a 28:03f904c070f7
25 25
26 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. 26 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
27 # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] 27 # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
28 # config.i18n.default_locale = :de 28 # config.i18n.default_locale = :de
29 config.middleware.delete "ActionDispatch::Cookies" 29 config.middleware.delete "ActionDispatch::Cookies"
30
31 if ENV["RT_MEMCACHED_SERVERS"]
32 config.cache_store = :mem_cache_store, ENV["RT_MEMCACHED_SERVERS"].split(","), { :namespace => "rsstweet" }
33 end
30 end 34 end
31 end 35 end