Fix Redis command errors when trying to start app with a readonly Redis.

This commit is contained in:
Guo Xiang Tan
2017-08-02 21:33:56 +09:00
parent 3538b63305
commit 9bc3038728
4 changed files with 86 additions and 11 deletions
+3 -1
View File
@@ -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/,