Hi, I am a contributor to Thredded, a Rails forums engine, and we have an 
interesting problem.

We currently all cache the posts on a topic page using collection caching.

This requires the entire post to be cached due to the current collection 
caching interface,
even though only the post content itself is slow to render. That's was not 
a large problem for us until now.

However, @EllaNancyFay is currently working 
<https://github.com/thredded/thredded/pull/533>on a feature for Thredded 
that requires something that cannot be cached
to be inserted at the end of the post partial, but that's not possible via 
the current render collection: ..., cache: ... interface.

I'm wondering if a feature that lets us render a collection to Strings 
would belong in Rails core?

So a method such as render_to_string*s*(partial:, collection:, cache:),
returning an Array of [ [item, "rendered html"], ... ].

-- 
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.

Reply via email to