From a9546e7c7668e70d232663175e35895bc25967ab Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 26 Mar 2018 11:35:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E6=96=87=E4=BB=B6=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E7=9A=84=E5=B9=B6=E5=8F=91=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/cache/driver/File.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/think/cache/driver/File.php b/library/think/cache/driver/File.php index 6b1abd19..fee64894 100644 --- a/library/think/cache/driver/File.php +++ b/library/think/cache/driver/File.php @@ -215,7 +215,10 @@ class File extends Driver public function rm($name) { $filename = $this->getCacheKey($name); - return $this->unlink($filename); + try { + return $this->unlink($filename); + } catch (\Exception $e) { + } } /**