mirror of
https://github.com/discourse/discourse.git
synced 2025-02-26 05:48:42 +08:00
commit
c125f5d8f5
@ -1,8 +1,7 @@
|
|||||||
# If Mini Profiler is included via gem
|
# If Mini Profiler is included via gem
|
||||||
if defined?(Rack::MiniProfiler)
|
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::RedisStore.new(:connection => DiscourseRedis.new)
|
||||||
Rack::MiniProfiler.config.storage = Rack::MiniProfiler::RedisStore
|
|
||||||
|
|
||||||
# For our app, let's just show mini profiler always, polling is chatty so nuke that
|
# 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|
|
Rack::MiniProfiler.config.pre_authorize_cb = lambda do |env|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user