改进查询缓存

This commit is contained in:
thinkphp
2018-02-08 15:28:40 +08:00
parent ccfe9ad612
commit 4d513f3c62

View File

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