Created
October 25, 2018 16:39
-
-
Save ksykulev/594420854716cc726c491e097378ffbd to your computer and use it in GitHub Desktop.
get template tree digest for fragment cache key (rails 5)
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
#https://api.rubyonrails.org/classes/ActionView/Helpers/CacheHelper.html#method-i-cache | |
ActionView::Digestor.digest(name: 'blog/show', finder: ActionController::Base.new.lookup_context) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment