From 10d780ea4bd119def9d32cd4336cf728b2b0963a Mon Sep 17 00:00:00 2001 From: Bertocq Date: Wed, 31 Jan 2018 22:26:03 +0100 Subject: [PATCH] Add valuation flag to comment form cache key --- app/views/comments/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/comments/_form.html.erb b/app/views/comments/_form.html.erb index 702df0dd0..d56556100 100644 --- a/app/views/comments/_form.html.erb +++ b/app/views/comments/_form.html.erb @@ -1,5 +1,5 @@ <% valuation = local_assigns.fetch(:valuation, false) %> -<% cache [locale_and_user_status, parent_id, commentable_cache_key(commentable)] do %> +<% cache [locale_and_user_status, parent_id, commentable_cache_key(commentable), valuation] do %> <% css_id = parent_or_commentable_dom_id(parent_id, commentable) %>
class="comment-form"> <%= form_for Comment.new, remote: true do |f| %>