-
Notifications
You must be signed in to change notification settings - Fork 438
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jbuilder_cache_multi still needed when using Rails 5? #394
Comments
I also am unclear on what the status of this is |
I'm using Rails 5.0.0.1 with the latest version of jbuilder. Here is a nested partial setup I have that seems to be working as you'd expect with russian doll caching. json with array of schedules that have stages, shows and artists. note some of this is pseudo code as i don't want to post everything in my partials :)
Show/Event partial: 'api/v1/shows/show'
and then the last partial - artist partial
After initial fragments have been written, subsequent read request looks like this
|
Thanks for your code, @mdoyle13! Btw, I think Rails 5 is unrelated to using |
The README mentions that
but it also mentions that
Does that mean enhancements in Rails 5 for collection caching (article here) also hold true for jbuilder?
If so, can the documentation be updated? I'd send a PR, but first I wanna make sure this is indeed the case.
Edit:
I'm just not sure because I don't think I understand the
cache!
implementation of this gem exactly and "works like" does not imply "uses the same code as".The text was updated successfully, but these errors were encountered: