A platform for community discussion. Free, open, simple.
FEATURE: add hook after all initializers
Sam Saffron208c6389001f
diff --git a/config/initializers/300-perf.rb b/config/initializers/300-perf.rbindex 3186698a8c5..86822bff8a0 100644--- a/config/initializers/300-perf.rb+++ b/config/initializers/300-perf.rb@@ -10,3 +10,6 @@ if Rails.env == "production"# Micro bench shows for `User.first` this takes us from 3.3k/s to 3.5k/sActiveSupport::Notifications.notifier.unsubscribe("sql.active_record")end++# this hook can be used by plugins to amend the middleware stack or patch any initializer behavior+DiscourseEvent.trigger(:after_initializers)