discourse/config/initializers
Sam Saffron 62141b6316 FEATURE: enable_performance_http_headers for performance diagnostics
This adds support for DISCOURSE_ENABLE_PERFORMANCE_HTTP_HEADERS
when set to `true` this will turn on performance related headers

```text
X-Redis-Calls: 10     # number of redis calls
X-Redis-Time: 1.02    # redis time in seconds
X-Sql-Commands: 102   # number of SQL commands
X-Sql-Time: 1.02      # duration in SQL in seconds
X-Queue-Time: 1.01    # time the request sat in queue (depends on NGINX)
```

To get queue time NGINX must provide: HTTP_X_REQUEST_START

We do not recommend you enable this without thinking, it exposes information
about what your page is doing, usually you would only enable this if you
intend to strip off the headers further down the stream in a proxy
2019-06-05 16:08:11 +10:00
..
000-mini_sql.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
000-post_migration.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
001-redis.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
002-freedom_patches.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
003-sql_builder.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
004-message_bus.rb DEV: switch message bus backend to memory for tests 2019-05-29 16:34:55 +10:00
004-rails_multisite.rb FIX: Sidekiq fails to start if any of the multisite has problems. 2018-12-12 11:30:14 +08:00
005-site_settings.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
006-ensure_login_hint.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
006-mini_profiler.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
008-rack-cors.rb Add Cache-Control header to CORS (#6490) 2018-10-16 10:46:55 +11:00
009-omniauth.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
010-discourse_iife.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
011-rack-protection.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
012-web_hook_events.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
013-excon_defaults.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
014-track-setting-changes.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
050-force_https.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
099-anon-cache.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
099-defer.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
099-drain_pool.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-i18n.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-logster.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-oj.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-onebox_options.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-push-notifications.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-quiet_logger.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-secret_token.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-session_store.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-sidekiq.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-silence_logger.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-strong_parameters.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-verify_config.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-watch_for_restart.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
100-wrap_parameters.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
101-lograge.rb DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
200-message_bus_request_tracker.rb FEATURE: enable_performance_http_headers for performance diagnostics 2019-06-05 16:08:11 +10:00
300-perf.rb PERF: remove SQL notifiers for every SQL execution 2019-05-09 17:44:46 +10:00