mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 21:57:50 +08:00
DEV: Change use of Redis flushall
to flushdb
.
FLUSHALL removes all keys from all databases. Instead we only want to remove keys from the current Redis database.
This commit is contained in:
@ -35,7 +35,7 @@ RSpec.describe Admin::BackupsController do
|
||||
end
|
||||
|
||||
after do
|
||||
Discourse.redis.flushall
|
||||
Discourse.redis.flushdb
|
||||
|
||||
@paths&.each { |path| File.delete(path) if File.exists?(path) }
|
||||
@paths = nil
|
||||
|
Reference in New Issue
Block a user