From 744c8f74faf0892ff62e3000d6432f2e005ebf68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 11 Nov 2020 10:52:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Action.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/HttpServer/Action.php b/HttpServer/Action.php index 0e5e3da9..5ec06ad0 100644 --- a/HttpServer/Action.php +++ b/HttpServer/Action.php @@ -52,8 +52,7 @@ trait Action } else { $pathId = file_get_contents($socket); @unlink($socket); - clearstatcache($socket); - + clearstatcache(true, $socket); if (empty($pathId)) { $this->close($server); } else { @@ -103,7 +102,7 @@ trait Action $this->closeByPid($content); } else { @unlink($file->getRealPath()); - clearstatcache($file->getRealPath()); + clearstatcache(true, $file->getRealPath()); } } return true;