mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fix Redis command errors when trying to start app with a readonly Redis.
This commit is contained in:
@@ -19,7 +19,9 @@ if defined?(Rack::MiniProfiler)
|
||||
# raw_connection means results are not namespaced
|
||||
#
|
||||
# namespacing gets complex, cause mini profiler is in the rack chain way before multisite
|
||||
Rack::MiniProfiler.config.storage_instance = Rack::MiniProfiler::RedisStore.new(connection: DiscourseRedis.raw_connection)
|
||||
Rack::MiniProfiler.config.storage_instance = Rack::MiniProfiler::RedisStore.new(
|
||||
connection: DiscourseRedis.new(nil, namespace: false)
|
||||
)
|
||||
|
||||
skip = [
|
||||
/^\/message-bus/,
|
||||
|
||||
Reference in New Issue
Block a user