uses author info in comment/debate cache

author is already preloaded and we avoid expensive touching methods
This commit is contained in:
Juanjo Bazán
2015-09-06 12:13:39 +02:00
parent 5b3f9e5642
commit 60089b8986
6 changed files with 8 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
<% cache [locale_and_user_status, @all_visible_comments.map(&:cache_key), @debate.comments_count, @comment_flags.to_a] do %>
<% cache [locale_and_user_status, @all_visible_comments, @all_visible_comments.map(&:author), @debate.comments_count, @comment_flags.to_a] do %>
<section class="row-full comments">
<div class="row">
<div id="comments" class="small-12 column">