Skip to content

Commit

Permalink
Change to isHit logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Hall committed Jan 11, 2018
1 parent 13d5dc2 commit dbc38b1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/CacheItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,8 @@ public function getExpires()

public function isHit()
{
if ($this->isDeferred) {
if ($this->expires !== 0 && $this->expires <= time()) {
return false;
}
if ($this->expires !== 0 && $this->expires <= time()) {
return false;
}

return $this->value !== false;
Expand Down

0 comments on commit dbc38b1

Please sign in to comment.