Closed oschwald closed 7 years ago
Our app receives timezones as part of user input and potentially could use any of the timezone modules. The docs recommend preloading the modules when using a pre-forking system. Is there a convenient way to preload all of the timezone modules?
Something like this should work ...
DateTime::TimeZone->new( name => $_ ) for DateTime::TimeZone->all_names
That will use a fair bit of memory though.
Thanks!
Our app receives timezones as part of user input and potentially could use any of the timezone modules. The docs recommend preloading the modules when using a pre-forking system. Is there a convenient way to preload all of the timezone modules?