Skip to content

Commit

Permalink
[webui] Replace a find with a find_cached...
Browse files Browse the repository at this point in the history
  • Loading branch information
saschpe committed Jan 13, 2012
1 parent 133616a commit aa57faf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webui/app/models/project.rb
Expand Up @@ -405,7 +405,7 @@ def maintenance_incidents(type = 'open')
when 'open' then predicate += " and repository/releasetarget/@trigger='maintenance'"
when 'closed' then predicate += " and not(repository/releasetarget/@trigger='maintenance')"
end
return Collection.find(:what => 'project', :predicate => predicate).each
return Collection.find_cached(:what => 'project', :predicate => predicate).each
end

def patchinfo
Expand Down

0 comments on commit aa57faf

Please sign in to comment.