Skip to content

Commit 1cc8669

Browse files
authored
Set avoidCache to false on cacheFor. [skip ci]
1 parent 98331a7 commit 1cc8669

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Traits/QueryCacheable.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ protected function newBaseQueryBuilder()
2121

2222
if ($this->cacheFor) {
2323
$builder->cacheFor($this->cacheFor);
24+
$this->avoidCache = false;
2425
}
2526

2627
if ($this->cacheTags) {

0 commit comments

Comments
 (0)