Sam Saffron 28292d2759
PERF: avoid shelling to get hostname aggressively
Previously we had many places in the app that called `hostname` to get
hostname of a server. This commit replaces the pattern in 2 ways

1. We cache the result in `Discourse.os_hostname` so it is only ever called once

2. We prefer to use Socket.gethostname which avoids making a shell command

This improves performance as we are not spawning hostname processes throughout
the app lifetime
2020-02-18 15:13:19 +11:00
..
2019-11-29 15:49:08 +00:00
2020-01-15 11:21:58 +01:00
2020-01-27 15:28:56 +01:00
2019-12-05 20:35:39 +05:30
2019-12-04 13:33:51 -05:00
2020-01-21 19:23:08 +02:00
2020-01-27 15:28:56 +01:00
2020-01-27 15:28:56 +01:00