From 4d3d48c7ce051b9799fb5c3c4c521e0f7366d5b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 11 Nov 2020 10:54:24 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HttpServer/Action.php b/HttpServer/Action.php index 5ec06ad0..f174b340 100644 --- a/HttpServer/Action.php +++ b/HttpServer/Action.php @@ -52,7 +52,6 @@ trait Action } else { $pathId = file_get_contents($socket); @unlink($socket); - clearstatcache(true, $socket); if (empty($pathId)) { $this->close($server); } else { @@ -63,6 +62,7 @@ trait Action $this->close($server); } } + clearstatcache(true); Snowflake::clearWorkerId(); } @@ -91,6 +91,7 @@ trait Action private function masterIdCheck() { echo '.'; + clearstatcache(true); $files = new \DirectoryIterator($this->getWorkerPath()); if ($files->getSize() < 1) { return false; @@ -102,7 +103,6 @@ trait Action $this->closeByPid($content); } else { @unlink($file->getRealPath()); - clearstatcache(true, $file->getRealPath()); } } return true;