Skip to content

Commit 63d6b4d

Browse files
committed
fix query cache
1 parent 5a8e1b1 commit 63d6b4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ protected function queryInternal($method, $fetchMode = null)
154154
$this->db->dsn,
155155
$rawSql,
156156
]);
157-
if (false !== $ret = $cache->get((string)$cacheKey)) {
157+
if (!empty($ret = $cache->get($cacheKey))) {
158158
$result = unserialize($ret);
159159
if (is_array($result) && isset($result[0])) {
160160
$this->logQuery($rawSql . '; [Query result served from cache]', 'clickhouse');

0 commit comments

Comments
 (0)