DEV Community

Discussion on: Collection Caching in Rails with Local Variables

Collapse
 
craz8 profile image
Tom Fakes

I think View Components is going to improve things a lot in this area by isolating the 'partial' from the global context to reduce this backdoor data access that breaks caching

Collapse
 
briankephart profile image
Brian Kephart

I haven't used that library, but yeah, isolated context with all variables passed in as arguments would make it harder to screw up the caching.