fix(cache): depends on locale

This commit is contained in:
Colin Darie 2023-12-05 16:13:49 +01:00
parent a9397ff5d3
commit 58af217477
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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" }

View file

@ -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?