From f294b8d4c3209689dde00326ca6270afa0b4843e Mon Sep 17 00:00:00 2001 From: gitlabhq Date: Tue, 15 Nov 2011 10:47:24 -0500 Subject: [PATCH] activity page cache --- app/controllers/projects_controller.rb | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 566f8f2..e778ae8 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -11,6 +11,9 @@ class ProjectsController < ApplicationController before_filter :require_non_empty_project, :only => [:blob, :tree] before_filter :load_refs, :only => :tree # load @branch, @tag & @ref + # expire show page every 4 minute + caches_action :show, :expires_in => 4.minutes + def index source = current_user.projects source = source.tagged_with(params[:tag]) unless params[:tag].blank? -- libgit2 0.21.2