Skip to content

Commit 279a966

Browse files
author
Mike Harrison
committed
fix: set isCachable to false if not a cachable query
1 parent eeb78e0 commit 279a966

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/ModelCaching.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static function destroy($ids)
6969
public function newEloquentBuilder($query)
7070
{
7171
if (! $this->isCachable()) {
72-
$this->isCachable = true;
72+
$this->isCachable = false;
7373

7474
return new EloquentBuilder($query);
7575
}

0 commit comments

Comments
 (0)