Skip to content

Commit fa07803

Browse files
author
Daniel
committed
Do not cache queries for a count
1 parent fbbe9de commit fa07803

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function execute() {
124124
$this->count = 0;
125125
$this->records = [];
126126

127-
if (self::$useCache) {
127+
if ($this->components['select'] != 'COUNT()' && self::$useCache) {
128128
$result = self::cacheGetByQuery($this->components);
129129
} else {
130130
$query = $this->compiled();

0 commit comments

Comments
 (0)