ref: refs/heads/backgroud_patches_bnc550934 commit 02793686f9ec5d16ab6d423d38e0c3a6378652f7 Author: Ladislav Slezak <lslezak@novell.com> Date: Thu Dec 3 13:42:43 2009 +0100 cache ResourcesController#index action speeds up the call about 4x, in absolute numbers it saves just about 10ms, but that's not bad for just one line patch --- webservice/app/controllers/resources_controller.rb | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/webservice/app/controllers/resources_controller.rb b/webservice/app/controllers/resources_controller.rb index f363f00..b94d6e3 100644 --- a/webservice/app/controllers/resources_controller.rb +++ b/webservice/app/controllers/resources_controller.rb @@ -1,5 +1,6 @@ class ResourcesController < ApplicationController require "resource_registration" + caches_action :index def index @resources = Resource.all -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org