]> source.dussan.org Git - redmine.git/commitdiff
Make sure that invalid cache from older versions is not used for languages_options...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 2 Nov 2014 21:25:59 +0000 (21:25 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 2 Nov 2014 21:25:59 +0000 (21:25 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13544 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/i18n.rb

index 3e783170fb68dbd2c4181c02b2bdd1b0c694a308..4b8dc218537c68e08e380bdf9484fc5f58d90792 100644 (file)
@@ -99,7 +99,7 @@ module Redmine
           map {|lang| [ll(lang.to_s, :general_lang_name), lang.to_s]}.
           sort {|x,y| x.first <=> y.first }
       else
-        ActionController::Base.cache_store.fetch "i18n/languages_options" do
+        ActionController::Base.cache_store.fetch "i18n/languages_options/#{Redmine::VERSION}" do
           languages_options :cache => false
         end
       end