修复authCache的tag缓存拼接问题

This commit is contained in:
2022-07-19 11:54:36 +08:00
parent f0e83b5886
commit 0c477cd6ad
2 changed files with 5 additions and 7 deletions

View File

@@ -14,12 +14,10 @@ use think\facade\App;
class Version extends Command
{
const VERSION = 'v2.0.8';
const VERSION = 'v2.0.9';
const COMMENT = [
'优化curd命令的调用方式',
'调整后台工作台内容',
'优化版本命令代码',
'修复authCache的tag缓存拼接问题',
];

View File

@@ -28,7 +28,7 @@ class Query extends DbQuery
if (is_null($key)) {
$key = $this->getOptionsMd5();
}
if (!is_null($field_key_value)) {
$key = $key . '_' . $field_key_value;
}
@@ -36,14 +36,14 @@ class Query extends DbQuery
if (!is_null($tag)) {
if (!is_null($field_key_value)) {
if (!is_null($field_tag_value)) {
$tag = $tag . '_' . $field_tag_value;
}
$tag = $table_name . '_' . $tag;
}
if(Env::get('app.auto_cache_log')){
if (Env::get('app.auto_cache_log')) {
Log::debug('use auto cache:' . $key);
Log::debug('use auto cache tag:' . $tag);
}