aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/general/frontpage.rhtml2
-rw-r--r--app/views/request/_sidebar.rhtml2
-rw-r--r--app/views/request/list.rhtml2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/general/frontpage.rhtml b/app/views/general/frontpage.rhtml
index b879cf7b8..e8e5d8634 100644
--- a/app/views/general/frontpage.rhtml
+++ b/app/views/general/frontpage.rhtml
@@ -1,4 +1,4 @@
-<% view_cache :ttl => 5.minutes do %>
+<% view_cache :ttl => 5.minutes, :tag => I18n.locale do %>
<div id="frontpage_search">
<h1><%= _('Make or explore Freedom of Information requests') %></h1>
diff --git a/app/views/request/_sidebar.rhtml b/app/views/request/_sidebar.rhtml
index 10be34ab9..2b9652d9c 100644
--- a/app/views/request/_sidebar.rhtml
+++ b/app/views/request/_sidebar.rhtml
@@ -25,7 +25,7 @@
</div>
- <% view_cache :ttl => 1.day, :tag => ['similar', @info_request.id] do %>
+ <% view_cache :ttl => 1.day, :tag => ['similar', @info_request.id, I18n.locale] do %>
<% if !@xapian_similar.nil? && @xapian_similar.results.size > 0 %>
<h2><% _('Similar requests')%></h2>
<% for result in @xapian_similar.results %>
diff --git a/app/views/request/list.rhtml b/app/views/request/list.rhtml
index 9e12b4175..04dc0d010 100644
--- a/app/views/request/list.rhtml
+++ b/app/views/request/list.rhtml
@@ -18,7 +18,7 @@
<%= render :partial => 'track/tracking_links', :locals => { :track_thing => @track_thing, :own_request => false, :location => 'main' } %>
<% end %>
-<% view_cache :ttl => 5.minutes, :tag => [@view, @page] do %>
+<% view_cache :ttl => 5.minutes, :tag => [@view, @page, I18n.locale] do %>
<% if @list_results.empty? %>
<p> <%= _('No requests of this sort yet.')%></p>
<% else %>