1
我發現有兩種方法來config cache_store
:爲什麼rails給我們兩種配置rails cache_store的方法?
config.action_controller.cache_store = :mem_cache_store, "localhost"
和:
config.cache_store = :mem_cache_store, "localhost"
看來,他們是同樣的事情。
爲什麼rails給我們兩種方法來配置緩存存儲?有什麼不同嗎?
我的答案適合您嗎? – 2011-05-26 05:16:00