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, comment, @commentable, (@comment_flags[comment.id] if @comment_flags)] do %>
<% cache [locale_and_user_status, comment, @commentable, comment.author, (@comment_flags[comment.id] if @comment_flags)] do %>
<div class="row">
<div id="<%= dom_id(comment) %>" class="comment small-12 column">