Vote #78220
完了redmine/i18n.rb - languages_lookup class variable is rebuilt every time
0%
説明
the @@@languages_lookup@ variable in @redmine/i18n.rb@ appears to be intended as a cache but is assigned to a new value everytime @find_language@ is called.
Attached patch fixes this by using @||=@ instead of @=@.
journals
Since @find_language@ method is called on every request, I think caching values is reasonable.
Setting target version to 3.4.0.
--------------------------------------------------------------------------------
Committed, thanks for the fix.
--------------------------------------------------------------------------------