mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
清空缓存方法删除空目录
This commit is contained in:
1
library/think/cache/driver/File.php
vendored
1
library/think/cache/driver/File.php
vendored
@@ -225,6 +225,7 @@ class File extends Driver
|
||||
foreach ($files as $path) {
|
||||
if (is_dir($path)) {
|
||||
array_map('unlink', glob($path . '/*.php'));
|
||||
rmdir($path);
|
||||
} else {
|
||||
unlink($path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user