diff --git a/app/controllers/application.rb b/app/controllers/application.rb index dd00034..ae6f780 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -103,7 +103,10 @@ class ApplicationController < ActionController::Base end def load_terminology - Noosfero.terminology = environment.terminology + # cache terminology for performance + @terminology_cache ||= {} + @terminology_cache[environment.id] ||= environment.terminology + Noosfero.terminology = @terminology_cache[environment.id] end def render_not_found(path = nil) -- libgit2 0.21.2