diff --git a/app/views/root/administration.html.haml b/app/views/root/administration.html.haml index 6ee3941b2ef..07b53ae91dc 100644 --- a/app/views/root/administration.html.haml +++ b/app/views/root/administration.html.haml @@ -70,7 +70,7 @@ = render partial: "root/testimonials" if LANDING_TESTIMONIALS_ENABLED - - cache "numbers-panel", :expires_in => 3.hours do + - cache([I18n.locale, "numbers-panel"], expires_in: 3.hours) do .fr-py-6w.fr-background-alt--blue-france .container %h2.center.fr-mb-4w #{APPLICATION_NAME} en chiffres diff --git a/app/views/shared/_procedure_description.html.haml b/app/views/shared/_procedure_description.html.haml index 734fffbf5e4..6ab7f352a1d 100644 --- a/app/views/shared/_procedure_description.html.haml +++ b/app/views/shared/_procedure_description.html.haml @@ -24,7 +24,7 @@ - unless @no_description .fr-accordions-group.fr-mb-3w - - cache [procedure, "description"] do + - cache [I18n.locale, procedure, "description"] do %section.fr-accordion %h2.fr-accordion__title %button.fr-accordion__btn{ "aria-controls" => "accordion-114", "aria-expanded" => "true" } diff --git a/app/views/users/dossiers/index.html.haml b/app/views/users/dossiers/index.html.haml index e141ac99b5d..64cc8700ab2 100644 --- a/app/views/users/dossiers/index.html.haml +++ b/app/views/users/dossiers/index.html.haml @@ -25,7 +25,7 @@ = render Dossiers::UserProcedureFilterComponent.new(procedures_for_select: @procedures_for_select) - if @search_terms.blank? - - cache([current_user.id, @statut, current_user.dossiers, current_user.dossiers_invites], expires_in: 1.hour) do + - cache([I18n.locale, current_user.id, @statut, current_user.dossiers, current_user.dossiers_invites], expires_in: 1.hour) do %nav.fr-tabs{ role: 'navigation', 'aria-label': t('views.users.dossiers.secondary_menu') } %ul.fr-tabs__list{ role: 'tablist' } - if @user_dossiers.present?