mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
find方法查询缓存改进
This commit is contained in:
@@ -2407,7 +2407,7 @@ class Query
|
|||||||
}
|
}
|
||||||
$result = Cache::get($key);
|
$result = Cache::get($key);
|
||||||
}
|
}
|
||||||
if (!$result) {
|
if (false === $result) {
|
||||||
// 生成查询SQL
|
// 生成查询SQL
|
||||||
$sql = $this->builder->select($options);
|
$sql = $this->builder->select($options);
|
||||||
// 获取参数绑定
|
// 获取参数绑定
|
||||||
@@ -2438,7 +2438,7 @@ class Query
|
|||||||
// 返回PDOStatement对象
|
// 返回PDOStatement对象
|
||||||
return $resultSet;
|
return $resultSet;
|
||||||
}
|
}
|
||||||
$result = isset($resultSet[0]) ? $resultSet[0] : [];
|
$result = isset($resultSet[0]) ? $resultSet[0] : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($cache)) {
|
if (isset($cache)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user