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:
parent
76830bade8
commit
cc3beef00f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue