From: Alan Knowles Date: Mon, 25 Jan 2021 03:13:34 +0000 (+0800) Subject: clear stat cache before rechecking directory X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=e22d368485d80797a44d045717dd5f5b0879ac30 clear stat cache before rechecking directory --- diff --git a/DataObjects/Events.php b/DataObjects/Events.php index e8682ac8..2da22c6d 100644 --- a/DataObjects/Events.php +++ b/DataObjects/Events.php @@ -516,6 +516,7 @@ class Pman_Core_DataObjects_Events extends DB_DataObject if (!file_exists(dirname($file))) { @mkdir(dirname($file),0700,true); // this might fail if it does not have correct permissions.. + clearstatcache(); if (!file_exists(dirname($file))) { //print_r($this); die("Events:: writeEventLog: could not create $file - permissons are not correct\n"); // fatal, otherwise we loop!?