This website requires JavaScript.
Explore
Help
Sign In
dice
/
impress
Watch
1
Star
0
Fork
You've already forked impress
0
forked from
OpenNeo/impress
Code
Pull requests
Activity
ca99459a43
impress
/
app
/
views
/
items
/
_item.html.haml
4 lines
64 B
Text
Raw
Normal View
History
Unescape
Escape
move closet to redesign
2010-06-30 11:51:49 -07:00
.object
Move item_link partial caching to a helper rather than the template itself This is a surprisingly huge performance gain. On my testing (with cache_classes set to true to also cache templates), this sped up closet_hangers#index rendering by a factor of 2 when there were a significant number of items. Cool beans. I think we can even hold off on the individual hanger caching now: we've made the closet hanger partial tons faster by moving forms out of them and doing this cache check earlier. I'm expecting significant performance gains both here and on items#index (though less so there). I'll deploy and see how much it helps in production; if not enough, we can look at the layered caching of hangers, lists, groups, full pages, etc. So glad we don't *have* to move to a pagination model!
2013-06-22 16:31:46 -07:00
= render_item_link(item)
improve closet performance by caching item link
2012-08-09 16:34:56 -07:00
= closeted_icons_for(item)
Copy permalink