mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 03:53:51 +08:00
commit
c125f5d8f5
|
@ -1,8 +1,7 @@
|
|||
# If Mini Profiler is included via gem
|
||||
if defined?(Rack::MiniProfiler)
|
||||
|
||||
Rack::MiniProfiler.config.storage_options = YAML.load(ERB.new(File.new("#{Rails.root}/config/redis.yml").read).result)[Rails.env].symbolize_keys
|
||||
Rack::MiniProfiler.config.storage = Rack::MiniProfiler::RedisStore
|
||||
Rack::MiniProfiler::RedisStore.new(:connection => DiscourseRedis.new)
|
||||
|
||||
# For our app, let's just show mini profiler always, polling is chatty so nuke that
|
||||
Rack::MiniProfiler.config.pre_authorize_cb = lambda do |env|
|
||||
|
|
Loading…
Reference in New Issue
Block a user