Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Rails 3 に、呼び出し時にすべてのページを一覧表示せずに、特定のコントローラーのすべてのページをキャッシュするように指示する方法はありますcaches_pageか? 試してみcaches_page :allましたが、うまくいきません。
caches_page
caches_page :all
実装の一種のバグですが、試してみたところ、Rails 3.0.6 で動作します。
caches_page :except => []
次のようなハックをいつでも実行できます。
(YourController.public_instance_methods - ApplicationController.public_instance_methods).each do |x| caches_page x.to_sym end