Ruby on Rails Tuesday, December 23, 2014

On 23 December 2014 at 13:42, Ankur Kumar <specialankur@gmail.com> wrote:
>
> Hi,
>
> 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?

Include the user id in the key string.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvnok5OsKHzcD2go8FhDtp7wpzLR%3DUiRj-V1P9nHdKTwA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment