1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Fix object allocation and cpu usage for each web request

This commit is contained in:
Anton Davydov 2015-12-15 03:20:28 +03:00
parent 76830bade8
commit cc3beef00f

View file

@ -18,7 +18,7 @@ module Sidekiq
end
def locale_files
@@locale_files = settings.locales.flat_map do |path|
@@locale_files ||= settings.locales.flat_map do |path|
Dir["#{path}/*.yml"]
end
end