Revert "Query类分页查询方法增加total_cache参数配置"

This reverts commit 6a550b8cb8.
This commit is contained in:
thinkphp
2017-05-15 16:55:15 +08:00
parent 6a550b8cb8
commit 2ee83fff81

View File

@@ -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();