<% cache("whole-comment-area-#{@article.id}-#{@article.last_comment_at}-#{@article.show_comments}", expires_in: 2.hours) do %>
<% if @article.show_comments %>

Discussion (<%= @article.comments_count %>)

<%= render "/comments/form", commentable: @article, commentable_type: "Article" %>
<% if @article.comments_count > 0 %> <% Comment.tree_for(@article, @comments_to_show_count).each do |comment, sub_comments| %> <% cache ["comment_root_cached_tree", comment] do %> <%= tree_for(comment, sub_comments, @article) %> <% end %> <% end %> <% end %>
<%= render "articles/comments_actions" %> <% end %>
<% end %> <% return if @warm_only %>