Skip to content

Commit

Permalink
[MemcachedCache] loadData now returns null instead of false (RSS-Brid…
Browse files Browse the repository at this point in the history
…ge#1592)

FileCache and SQLiteCache returns null on cache miss. This is important if using strict comparing (for example when using "===")
  • Loading branch information
em92 authored and comlaterra committed Sep 25, 2020
1 parent a4e9c7a commit 6dd9ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caches/MemcachedCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit 6dd9ed1

Please sign in to comment.