From 62501e390561756ef358302cf68acac814994cd6 Mon Sep 17 00:00:00 2001
From: Erick Hitter <ehitter@gmail.com>
Date: Thu, 27 Feb 2014 14:14:15 -0800
Subject: [PATCH] Only clear the current DB, not all DBs in the Redis instance,
 when flushing the cache.

---
 object-cache.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/object-cache.php b/object-cache.php
index 4f8d7fd..b9b48d4 100644
--- a/object-cache.php
+++ b/object-cache.php
@@ -416,7 +416,7 @@ class WP_Object_Cache {
 		}
 
 		$this->cache = array();
-		$result = $this->parse_predis_response( $this->redis->flushall() );
+		$result = $this->parse_predis_response( $this->redis->flushdb() );
 
 		return $result;
 	}
-- 
GitLab