[Hotfix] Fix cache key (#20658)

* Fix cache key

* Small style tweak
This commit is contained in:
Ben Halpern 2024-02-19 19:24:36 -08:00 committed by GitHub
parent caa7b5a63a
commit 17d81b6cb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -60,7 +60,7 @@
.text-styles {
padding-top: var(--su-4);
padding-bottom: var(--su-4);
font-size: calc(0.7em + 1vw);
font-size: calc(0.8em + 0.58vw);
max-width: calc(var(--site-width) - var(--su-8));
}
.sponsorship-dropdown {
@ -72,6 +72,9 @@
.text-styles {
margin-left: calc(50% - (var(--site-width) / 2));
}
.text-styles {
font-size: 1.22em;
}
}
}

View file

@ -1,4 +1,4 @@
<% navigation_links = Rails.cache.fetch("navigation_links", expires_in: 15.minutes) do
<% navigation_links = Rails.cache.fetch("navigation_links-#{user_signed_in?}", expires_in: 15.minutes) do
{
default_nav_ids: NavigationLink.default_section.ordered.ids,
other_nav_ids: NavigationLink.other_section.ordered.ids,