Hi Markus, thanks for that suggestion. How would a
collection-rendering make use of the read_multi caching? How is that
used at all? Ok, maybe I should read the post, first ;-) But remember
that cells has its own caching!
I was playing with something like
render_cell :comments, :show, :collection => @pages
but you are right, what if you need more than one arg to pass into the
cell? Then you'd need an additional list like
render_cell :comments, :show, :collection => @pages, current_user
Or you'd need a block, as you propose.
render_cell :comments, :show, :collection => @pages do |page|
page, current_user
end
which would interfere with the original block for render_cell. That
leads us to #render_cells, which is 100% your idea :-)
I need to check how we can use read_multi in the cell caching, then we
can think about adding this change. Thanks again!
Nick
> --
> Sie haben diese Nachricht erhalten, weil Sie der Google Groups-Gruppe Cells
> and Apotomo beigetreten sind.
> Um Ihr Abonnement für diese Gruppe zu beenden und keine E-Mails mehr von
> dieser Gruppe zu erhalten, senden Sie eine Email an
>
cells-and-apot...@googlegroups.com.
> Weitere Optionen:
https://groups.google.com/groups/opt_out
>
>