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) { + } } /**