From 008e04e356a53546803f87cf6055fa39b5949012 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Tue, 3 Jan 2023 10:56:26 +0100 Subject: [PATCH] fix(home/i18n): cache key in views must depend of locale --- app/views/root/landing.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/root/landing.html.haml b/app/views/root/landing.html.haml index 66bc39684..fd830aae0 100644 --- a/app/views/root/landing.html.haml +++ b/app/views/root/landing.html.haml @@ -26,7 +26,7 @@ = link_to t(".how_to_find_procedure"), COMMENT_TROUVER_MA_DEMARCHE_URL, class: "fr-btn fr-btn--lg fr-mr-1w fr-mb-2w", title: new_tab_suffix(t(".how_to_find_procedure")), **external_link_attributes = link_to t("views.users.sessions.new.connection"), new_user_session_path, class: "fr-btn fr-btn--secondary fr-btn--lg" - - cache "numbers-panel", :expires_in => 3.hours do + - cache [I18n.locale, "numbers-panel"], expires_in: 3.hours do .landing-panel .container %h2.center.fr-mb-4w= t(".our_numbers", name: APPLICATION_NAME)