TP5 Cache::clear();清空缓存在的问题

浏览:5126 发布日期:2018/03/20
5.0.0 - 普通 - 未处理
使用文件缓存

在使用 Cache::clear(); 清除所有缓存时 存在的问题

在文件\thinkphp\library\think\cache\driver\File.php 的233行if (is_array($matches)) {
       array_map('unlink', $matches);
}
rmdir($path);
偶尔会出现array_map('unlink', $matches);删除文件夹内部文件还未完成,底下的rmdir($path);执行就会报
Directory not empty错误
评论()
后面还有条评论,点击查看>>