Skip to content

Commit

Permalink
Merge pull request #7 from rennokki/hotfix/fix-avoid-cache
Browse files Browse the repository at this point in the history
[hotfix] Fix avoid cache disabled by default
  • Loading branch information
rennokki authored Dec 2, 2019
2 parents 98331a7 + 03382cb commit 5ec03cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Builder extends BaseBuilder
*
* @var bool
*/
protected $avoidCache = false;
protected $avoidCache = true;

/**
* {@inheritdoc}
Expand Down Expand Up @@ -227,6 +227,7 @@ protected function getCache()
public function cacheFor($time)
{
$this->cacheTime = $time;
$this->avoidCache = false;

return $this;
}
Expand Down

0 comments on commit 5ec03cb

Please sign in to comment.