changeset 1032:ff1556010d8b cannam

Expiry. Wonder whether this works.
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Tue, 13 Nov 2012 12:06:19 +0000
parents 873d052b361b
children 13a8e4ac88d5
files app/views/projects/explore.html.erb
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/app/views/projects/explore.html.erb	Tue Nov 13 10:37:06 2012 +0000
+++ b/app/views/projects/explore.html.erb	Tue Nov 13 12:06:19 2012 +0000
@@ -1,5 +1,5 @@
 
-<% cache(:action => 'explore', :action_suffix => 'tags') do %>
+<% cache(:action => 'explore', :action_suffix => 'tags', :expires_in => 1.hour) do %>
 <h2><%= l(:label_explore_projects) %></h2>
   <div class="tags box">
   <h3><%=l(:label_project_tags_all)%></h3>
@@ -8,7 +8,7 @@
 <% end %>
 
 <div class="splitcontentleft">
-  <% cache(:action => 'explore', :action_suffix => 'busy_institutions') do %>
+  <% cache(:action => 'explore', :action_suffix => 'busy_institutions', :expires_in => 1.hour) do %>
   <div class="institutions box">
   <h3><%=l(:label_institutions_busy)%></h3>
     <%= render :partial => 'activities/busy_institution' %>
@@ -20,7 +20,7 @@
   </div>
 </div>
 <div class="splitcontentright">
-  <% cache(:action => 'explore', :action_suffix => 'busy_projects') do %>
+  <% cache(:action => 'explore', :action_suffix => 'busy_projects', :expires_in => 1.hour) do %>
   <div class="projects box">
   <h3><%=l(:label_projects_busy)%></h3>
     <%= render :partial => 'activities/busy' %>