I have a simple home page, like that:
index view with partials:
header
how_it_works
benefits
customer_supports
about
covered_areas
I tried to use "Page Caching"/"Action Caching". But in my layout I have a top header that has a condition if user_signed_in?
. So using "Page Caching"/"Action Caching" doesn't work for me.
Should I use "Fragment Caching" for each partial?
I appreciate any help!
如果问题仅与布局有关,则可以使用caches_action :index, layout: false
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.