Fix sidebar caching issue for articles (#981)

This commit is contained in:
Ben Halpern 2018-10-22 17:49:59 -04:00 committed by GitHub
parent 302e8f202d
commit 8661fe44d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -216,7 +216,7 @@
</div>
</div>
<% 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 %>