[deploy] Add user_signed_in to profile header cache key (#7315)

This commit is contained in:
Ben Halpern 2020-04-15 20:08:25 -04:00 committed by GitHub
parent 645920c09f
commit db4c9ef4b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@
<%= @user_json_ld.to_json.html_safe %>
</script>
<% end %>
<% cache "main-user-profile-header-area-#{@user.id}-#{@user.profile_updated_at}", expires_in: 10.days do %>
<% cache "main-user-profile-header-area-#{@user.id}-#{@user.profile_updated_at}-#{user_signed_in?}", expires_in: 10.days do %>
<style>
.widget header {
color: <%= HexComparer.new([user_colors(@user)[:bg], user_colors(@user)[:text]]).brightness(0.88) %>;