Ruby on Rails Saturday, September 1, 2018

I want to cache with custom cache_key of Fragment Caching because I don't want to change updated_at.


So, I googled and found monkeypatch(https://gist.github.com/tispratik/9276110). But It just a monkey patch.


Is there a way to set custom cache_key?

Thanks


--
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/9452efd8-dcfe-4d1e-8451-8b45b491871d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment