OSDN Git Service
(root)
/
wvm
/
gitlab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9104535
)
activity page cache
author
gitlabhq
<m@gitlabhq.com>
Tue, 15 Nov 2011 15:47:24 +0000
(10:47 -0500)
committer
gitlabhq
<m@gitlabhq.com>
Tue, 15 Nov 2011 15:47:24 +0000
(10:47 -0500)
app/controllers/projects_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/projects_controller.rb
b/app/controllers/projects_controller.rb
index
566f8f2
..
e778ae8
100644
(file)
--- 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?