diff --git a/app/views/lvas/show.html.erb b/app/views/lvas/show.html.erb index 06f872b..444e892 100755 --- a/app/views/lvas/show.html.erb +++ b/app/views/lvas/show.html.erb @@ -82,7 +82,7 @@

<%= link_to t("beispiel.zip") , beispiel_sammlung_lva_path(@lva), class: :linkbox %> <% @lva.beispiele.order(:datum).each do |b| %> - <% cache("beispiel_" +b.id.to_s + "_" + b.updated_at.try(:utc).try(:to_s)) do %> + <% cache("beispiel_" +I18n.locale+b.id.to_s + "_" + b.updated_at.try(:utc).try(:to_s)) do %> <%= render b%> <% end %> <% end %> diff --git a/app/views/neuigkeiten/_neuigkeit.html.erb b/app/views/neuigkeiten/_neuigkeit.html.erb index 1394625..3c5aed4 100755 --- a/app/views/neuigkeiten/_neuigkeit.html.erb +++ b/app/views/neuigkeiten/_neuigkeit.html.erb @@ -2,7 +2,7 @@ <%= content_tag wrap_in do %> - <% cache("neuigkeit_"+neuigkeit.id.to_s+"_"+neuigkeit.updated_at.try(:utc).try(:to_s)) do %> + <% cache("neuigkeit_"+neuigkeit.id.to_s+"_"+I18n.locale+neuigkeit.updated_at.try(:utc).try(:to_s)) do %> <% c =[:linkbox] %> <% c << "color-"+neuigkeit.rubrik.color.to_s+"-dark" unless neuigkeit.rubrik.color.nil? %> <% c << "unpublished" unless neuigkeit.published? %> @@ -14,7 +14,7 @@ <% end %> <% else %> -<% cache("neuigkeit_"+neuigkeit.id.to_s+"_"+neuigkeit.updated_at.try(:utc).try(:to_s)) do %> +<% cache("neuigkeit_"+neuigkeit.id.to_s+"_"+I18n.locale+neuigkeit.updated_at.try(:utc).try(:to_s)) do %> <% c =[:linkbox] %> <% c << "color-"+neuigkeit.rubrik.color.to_s+"-dark" unless neuigkeit.rubrik.color.nil? %>