From c60f54db0876f7daafe65335b97897c6b3d86f41 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Fri, 15 May 2009 16:56:33 -0300 Subject: [PATCH] ActionItem1049: oops, cache must be in the class scope --- app/controllers/application.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/application.rb b/app/controllers/application.rb index ae6f780..f0b973a 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -104,9 +104,9 @@ class ApplicationController < ActionController::Base def load_terminology # cache terminology for performance - @terminology_cache ||= {} - @terminology_cache[environment.id] ||= environment.terminology - Noosfero.terminology = @terminology_cache[environment.id] + @@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