From 89ee5379b7f909e6c9f88957f5f7f22596db68d2 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 8 Feb 2017 19:02:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=A9=BA=E7=BC=93=E5=AD=98=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E5=88=A0=E9=99=A4=E7=A9=BA=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/cache/driver/File.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/think/cache/driver/File.php b/library/think/cache/driver/File.php index dba02c3e..838025e0 100644 --- a/library/think/cache/driver/File.php +++ b/library/think/cache/driver/File.php @@ -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); }