RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: rahul-shrivastava
There is a small issue with the caching mechanism you showed. If the user details is modified by another session , then the cache would not fetch the latest information. In short, there should be a way to invalidate this cache.