For example using the data from the db (model instance) as cache key is quite effective solution for being able to deliver most view/fragments from cache.
The downside is that some care must be taken with keys, which parts are cached (eg: logged in pages).
At any rate, I think many rails developers should refresh their knowledge of rails caching: https://guides.rubyonrails.org/caching_with_rails.html.
For example using the data from the db (model instance) as cache key is quite effective solution for being able to deliver most view/fragments from cache.
The downside is that some care must be taken with keys, which parts are cached (eg: logged in pages).