Last active
August 29, 2015 13:58
-
-
Save jjb/10000281 to your computer and use it in GitHub Desktop.
how to experiment with rails fragment cache key generation in the console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# inside rails console | |
include ActionController::Caching::Fragments | |
fragment_cache_key [User.first, "hello", :monkey, false] | |
# => "views/users/1-20140404193333893414000/hello/monkey/false" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment