Commit f294b8d4c3209689dde00326ca6270afa0b4843e
1 parent
91045358
Exists in
master
and in
4 other branches
activity page cache
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
app/controllers/projects_controller.rb
... | ... | @@ -11,6 +11,9 @@ class ProjectsController < ApplicationController |
11 | 11 | before_filter :require_non_empty_project, :only => [:blob, :tree] |
12 | 12 | before_filter :load_refs, :only => :tree # load @branch, @tag & @ref |
13 | 13 | |
14 | + # expire show page every 4 minute | |
15 | + caches_action :show, :expires_in => 4.minutes | |
16 | + | |
14 | 17 | def index |
15 | 18 | source = current_user.projects |
16 | 19 | source = source.tagged_with(params[:tag]) unless params[:tag].blank? | ... | ... |