clear stat cache before rechecking directory
authorAlan Knowles <alan@roojs.com>
Mon, 25 Jan 2021 03:13:34 +0000 (11:13 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 25 Jan 2021 03:13:34 +0000 (11:13 +0800)
DataObjects/Events.php

index e8682ac..2da22c6 100644 (file)
@@ -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!?