From 6c90d63686bc92c6a7e2ffdbbee62c3b6169e9da Mon Sep 17 00:00:00 2001 From: Eugene Molotov Date: Mon, 8 Jun 2020 10:31:24 +0500 Subject: [PATCH] [MemcachedCache] loadData now returns null instead of false FileCache and SQLiteCache returns null on cache miss. This is important if using strict comparing (for example when using "===") --- caches/MemcachedCache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caches/MemcachedCache.php b/caches/MemcachedCache.php index f69f10b0152..b431279a0bb 100644 --- a/caches/MemcachedCache.php +++ b/caches/MemcachedCache.php @@ -40,7 +40,7 @@ public function loadData(){ if ($this->data) return $this->data; $result = $this->conn->get($this->getCacheKey()); if ($result === false) { - return false; + return null; } $this->time = $result['time'];