activity page cache
This commit is contained in:
parent
91045358a2
commit
f294b8d4c3
1 changed files with 3 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue