diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
index 06cb8097cf..6149cc10fd 100644
--- a/layouts/partials/menu.html
+++ b/layouts/partials/menu.html
@@ -58,7 +58,7 @@
{{- end }}
{{- $siteLanguages := .Site.Languages }}
{{- $showlangswitch := and .Site.IsMultiLingual (not .Site.Params.disableLanguageSwitchingButton) (gt (int (len $siteLanguages)) 1) }}
- {{- $themevariants := partial "get-theme-variants.hugo" . }}
+ {{- $themevariants := partialCached "get-theme-variants.hugo" . }}
{{- $showvariantswitch := gt (int (len $themevariants)) 1 }}
{{- $footer := partial "menu-footer.html" . }}
{{- $showfooter := not (eq 0 (int (len ($footer | plainify)))) }}
diff --git a/layouts/partials/stylesheet.html b/layouts/partials/stylesheet.html
index 16276ee4c6..eb904a106b 100644
--- a/layouts/partials/stylesheet.html
+++ b/layouts/partials/stylesheet.html
@@ -13,7 +13,7 @@
- {{- $themevariants := partial "get-theme-variants.hugo" . }}
+ {{- $themevariants := partialCached "get-theme-variants.hugo" . }}
{{- with index $themevariants 0 }}