russian-doll-caching Questions
2
Solved
I have a Profile#Index view, where I render a partial like so:
<% cache @profiles do %>
<div class="wrapper wrapper-content">
<% @profiles.to_a.in_groups_of(3, false).each do |pro...
Hippodrome asked 7/11, 2016 at 4:42
2
Solved
Just doing some research on the best way to cache a paginated collection of items. Currently using jbuilder to output JSON and have been playing with various cache_key options.
The best example I'...
Volscian asked 13/2, 2014 at 23:35
1
Solved
From what i understand of Russian doll caching in Rails it would be detrimental to eager load related objects or object lists when we are doing RDC (Russian Doll Caching) because in RDC we just loa...
Sykes asked 18/2, 2014 at 23:0
2
After studying DHH's and other blog articles about key-based cache expiration and Russian Doll Caching, I am still unsure how to handle one relation type. To be specific, a has_many relationship.
...
Indifferentism asked 12/4, 2013 at 20:13
1
Solved
I have set up a cache in my model like
def self.latest(shop_id)
Inventory.where(:shop_id => shop_id).order(:updated_at).last
end
and in my view
<% cache ['inventories', Inventory.lates...
Caricaria asked 3/7, 2013 at 6:54
1
© 2022 - 2024 — McMap. All rights reserved.