If you mean whether cache_collection_render is usable, I think it would be but it is currently private!
The implementation I've linked to above does use PartialRenderer, and effectively reimplements cache_collection_render using only public APIs. On Tue, Mar 21, 2017 at 6:45 PM Kasper Timm Hansen <[email protected]> wrote: > Right, it’s joined with the spacer template. Maybe that’s usable? > > > https://github.com/rails/rails/blob/9c0a82d5766c2c01f1e75eb5c70c65f28ec6a665/actionview/lib/action_view/renderer/partial_renderer.rb#L326 > > Den 20. mar. 2017 kl. 21.44 skrev Gleb Mazovetskiy <[email protected]>: > > No, a collection cache render returns a single string. > > On Mon, 20 Mar 2017, 19:15 Kasper Timm Hansen, <[email protected]> wrote: > > Been a while since I’ve last worked with that code but doesn’t a > collection cache render return a collection of rendered HTML strings? > > I think you might be able to stitch the objects and their rendered HTML > together like this: > > @posts.zip(render(partial: ’posts/post’, collection: @posts, cached: > true)) > > Though overall, I don’t think we’re going to change the interface here. > Thanks! :) > > Den 5. mar. 2017 kl. 10.06 skrev Gleb Mazovetskiy <[email protected]>: > > Here is an example implementation: > https://github.com/thredded/thredded/pull/536/files#diff-00110786c7c8a611fd05432b7fb15270 > > > -- > > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > > > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/rubyonrails-core. > For more options, visit https://groups.google.com/d/optout. > > > -- > Kasper > > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Ruby on Rails: Core" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/rubyonrails-core/Cx0GXz_k7Dc/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/rubyonrails-core. > For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/rubyonrails-core. > For more options, visit https://groups.google.com/d/optout. > > > -- > Kasper > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Ruby on Rails: Core" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/rubyonrails-core/Cx0GXz_k7Dc/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/rubyonrails-core. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.
