mardi 25 août 2015

What is the best way to cache a home page?

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". But in my layout I have a top header that has a condition if user_signed_in?. So using "Page Caching" doesn't work for me.

Should I use "Fragment Caching" for each partial?

I appreciate any help!

Aucun commentaire:

Enregistrer un commentaire