From 6dd9ed142fd55ff4f2adfb948b8f9c70914c851c Mon Sep 17 00:00:00 2001 From: Eugene Molotov Date: Mon, 8 Jun 2020 14:27:19 +0500 Subject: [PATCH] [MemcachedCache] loadData now returns null instead of false (#1592) 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'];