Skip to content

Commit

Permalink
fixed purge result
Browse files Browse the repository at this point in the history
  • Loading branch information
HillLiu committed Apr 20, 2018
1 parent d098080 commit 7fcb1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function purge($maybeHash)
$hash = $this->_getHash($maybeHash);
if (isset($this->_db[$hash])) {
unset($this->_db[$hash]);
return isset($this->_db[$hash]);
return !isset($this->_db[$hash]);
} else {
return false;
}
Expand Down

0 comments on commit 7fcb1fa

Please sign in to comment.