From dae64c1d84799a634bf10cf5922f2cbe4417a4c2 Mon Sep 17 00:00:00 2001 From: markseu Date: Wed, 1 May 2024 20:25:06 +0200 Subject: [PATCH] Updated file handling, experimental --- system/workers/core.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/workers/core.php b/system/workers/core.php index 63ca47a..234d8fc 100755 --- a/system/workers/core.php +++ b/system/workers/core.php @@ -2129,6 +2129,7 @@ class YellowToolbox { if (flock($fileHandle, LOCK_EX)) { ftruncate($fileHandle, 0); fwrite($fileHandle, $fileData); + fflush($fileHandle); flock($fileHandle, LOCK_UN); } fclose($fileHandle); @@ -2149,6 +2150,7 @@ class YellowToolbox { clearstatcache(true, $fileName); if (flock($fileHandle, LOCK_EX)) { fwrite($fileHandle, $fileData); + fflush($fileHandle); flock($fileHandle, LOCK_UN); } fclose($fileHandle);