mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 23:22: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) {
|
foreach ($files as $path) {
|
||||||
if (is_dir($path)) {
|
if (is_dir($path)) {
|
||||||
array_map('unlink', glob($path . '/*.php'));
|
array_map('unlink', glob($path . '/*.php'));
|
||||||
|
rmdir($path);
|
||||||
} else {
|
} else {
|
||||||
unlink($path);
|
unlink($path);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user