From 8661fe44d5a3a705bbcbfda021af800569341212 Mon Sep 17 00:00:00 2001 From: Ben Halpern Date: Mon, 22 Oct 2018 17:49:59 -0400 Subject: [PATCH] Fix sidebar caching issue for articles (#981) --- app/views/articles/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/articles/show.html.erb b/app/views/articles/show.html.erb index 38ff1a1d6..fe17df223 100644 --- a/app/views/articles/show.html.erb +++ b/app/views/articles/show.html.erb @@ -216,7 +216,7 @@ -<% cache("sticky-sidebar-#{@article.id}-#{@article.edited_at}-#{(@organization || @user).updated_at}", :expires_in => 8.hours) do %> +<% cache("sticky-sidebar-#{@article.id}-#{@article.updated_at}-#{(@organization || @user).updated_at}-#{user_signed_in?}", :expires_in => 8.hours) do %> <%= render "articles/sticky_nav" %> <% end %>