From 218713739b6cc3a4fd74f5ce4b6e680c4315cb09 Mon Sep 17 00:00:00 2001 From: Krzysztof Rybka Date: Mon, 26 Oct 2020 18:26:07 +0100 Subject: [PATCH] [deploy] Add following_tags_count to user sidebar stats cache key (#11042) --- app/views/users/_sidebar.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/_sidebar.html.erb b/app/views/users/_sidebar.html.erb index bebd9d8cc..202cdb5a4 100644 --- a/app/views/users/_sidebar.html.erb +++ b/app/views/users/_sidebar.html.erb @@ -44,7 +44,7 @@ <% end %> <% end %> - <% cache "user-profile-sidebar-stats-#{@user.id}-#{@user.last_article_at}-#{@user.last_comment_at}-#{@user.last_followed_at}", expires_in: 10.days do %> + <% cache "user-profile-sidebar-stats-#{@user.id}-#{@user.last_article_at&.rfc3339}-#{@user.last_comment_at&.rfc3339}-#{@user.following_tags_count}-#{@user.last_followed_at&.rfc3339}", expires_in: 10.days do %>