diff --git a/library/think/db/Query.php b/library/think/db/Query.php index d24943fe..d9cc56a5 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -1336,8 +1336,7 @@ class Query unset($this->options['order'], $this->options['limit'], $this->options['page'], $this->options['field']); $bind = $this->bind; - $cache = !empty($config['total_cache']) ? $config['total_cache'] : false; - $total = $this->cache($cache)->count(); + $total = $this->count(); $results = $this->options($options)->bind($bind)->page($page, $listRows)->select(); } elseif ($simple) { $results = $this->limit(($page - 1) * $listRows, $listRows + 1)->select();