mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
改进查询缓存
This commit is contained in:
@@ -2424,7 +2424,7 @@ class Query
|
|||||||
$data = $value[1];
|
$data = $value[1];
|
||||||
}
|
}
|
||||||
if (isset($data)) {
|
if (isset($data)) {
|
||||||
return 'think:' . (is_array($options['table']) ? key($options['table']) : $options['table']) . '|' . $data;
|
return 'think:' . $this->connection->getConfig('database') . '.' . (is_array($options['table']) ? key($options['table']) : $options['table']) . '|' . $data;
|
||||||
} else {
|
} else {
|
||||||
return md5(serialize($options) . serialize($bind));
|
return md5(serialize($options) . serialize($bind));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user