Change profile header cache key to purge headers (#11732)

This commit is contained in:
rhymes 2020-12-03 17:41:16 +01:00 committed by GitHub
parent 28f3dbb13b
commit 347f7376f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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