activities page caching
This commit is contained in:
parent
fb8f05ee16
commit
8ad1f8a474
3 changed files with 19 additions and 2 deletions
|
@ -67,7 +67,7 @@ class ProjectsController < ApplicationController
|
|||
def show
|
||||
return render "projects/empty" unless @project.repo_exists?
|
||||
limit = (params[:limit] || 20).to_i
|
||||
@activities = @project.updates(limit)
|
||||
@activities = @project.cached_updates(limit)
|
||||
end
|
||||
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue