My app has devise authentication for every user. I integrated fragment caching for one of my views which is accessible only on sign-in.
The cached page saved by one user is accessible by another user. How can I implement a unique key based caching so that cached pages are unique for every user?
I read about some caching methods below but not sure how to create/retrieve a unique cached page.
Thanks Colin for your reply. Can you please let me know how can user_id be included in caching key string? I have following implementation of caching as of now.