From bfd89ed15ad1b5086688c7507ea65eba0ec094bc Mon Sep 17 00:00:00 2001 From: kikito Date: Thu, 29 Oct 2015 17:36:50 +0100 Subject: [PATCH] Adds current order to the comments cache in proposals and debates --- app/views/debates/_comments.html.erb | 2 +- app/views/proposals/_comments.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/debates/_comments.html.erb b/app/views/debates/_comments.html.erb index 4c9ad6a69..73405705a 100644 --- a/app/views/debates/_comments.html.erb +++ b/app/views/debates/_comments.html.erb @@ -1,4 +1,4 @@ -<% cache [locale_and_user_status, commentable_cache_key(@debate), @all_visible_comments, @all_visible_comments.map(&:author), @debate.comments_count, @comment_flags] do %> +<% cache [locale_and_user_status, @current_order, commentable_cache_key(@debate), @all_visible_comments, @all_visible_comments.map(&:author), @debate.comments_count, @comment_flags] do %>
diff --git a/app/views/proposals/_comments.html.erb b/app/views/proposals/_comments.html.erb index 6a6868f5c..47713c8d5 100644 --- a/app/views/proposals/_comments.html.erb +++ b/app/views/proposals/_comments.html.erb @@ -1,4 +1,4 @@ -<% cache [locale_and_user_status, commentable_cache_key(@proposal), @all_visible_comments, @all_visible_comments.map(&:author), @proposal.comments_count, @comment_flags] do %> +<% cache [locale_and_user_status, commentable_cache_key(@proposal), @current_order, @all_visible_comments, @all_visible_comments.map(&:author), @proposal.comments_count, @comment_flags] do %>