framework
framework copied to clipboard
请求缓存设置的缓存标签无效
https://github.com/top-think/framework/blob/9cb47919f59f080e39ec2b8401e4f9c11c8548fb/src/think/middleware/CheckRequestCache.php#L77
$tag = null;
会导致应用配置(app/index/config/route.php)的请求缓存标签无效,建议更改为
$tag = $this->config['request_cache_tag'];
另外还有一个疑问
https://github.com/top-think/framework/blob/9cb47919f59f080e39ec2b8401e4f9c11c8548fb/src/think/middleware/CheckRequestCache.php#L102
$tag没有hash,实际缓存时,缓存标签KEY却是hash过的,没看到代码用的md5函数