2011-05-23 48 views
1

我發現有兩種方法來config cache_store爲什麼rails給我們兩種配置rails cache_store的方法?

config.action_controller.cache_store = :mem_cache_store, "localhost" 

here is doc

和:

config.cache_store = :mem_cache_store, "localhost" 

看來,他們是同樣的事情。

爲什麼rails給我們兩種方法來配置緩存存儲?有什麼不同嗎?

+1

我的答案適合您嗎? – 2011-05-26 05:16:00

回答

相關問題