We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents afe4c80 + 69d59e8 commit 1895fc6Copy full SHA for 1895fc6
src/Query/Builder.php
@@ -21,4 +21,18 @@ public function get($columns = ['*'])
21
22
return parent::get($columns);
23
}
24
+
25
+ /**
26
+ * {@inheritdoc}
27
+ */
28
+ public function useWritePdo()
29
+ {
30
+ // Do not cache when using the write pdo for query.
31
+ $this->dontCache();
32
33
+ // Call parent method
34
+ parent::useWritePdo();
35
36
+ return $this;
37
+ }
38
src/Traits/QueryCacheable.php
@@ -21,6 +21,8 @@ protected function newBaseQueryBuilder()
if ($this->cacheFor) {
$builder->cacheFor($this->cacheFor);
+ } else {
+ $builder->dontCache();
if ($this->cacheTags) {
0 commit comments