no need to mkdir twice?
authorAlan <alan@roojs.com>
Fri, 22 Sep 2023 02:32:18 +0000 (10:32 +0800)
committerAlan <alan@roojs.com>
Fri, 22 Sep 2023 02:32:18 +0000 (10:32 +0800)
HTML/FlexyFramework.php

index a7ab325..8cad346 100755 (executable)
@@ -944,10 +944,9 @@ RewriteRule ^(.+)$ /web.hpasite/index.local.php [L,NC,E=URL:$1]
         if (empty($this->HTML_Template_Flexy['compileDir'])) {
             return;
         }
-        
+        clearstatcache();
         if ( !file_exists($this->HTML_Template_Flexy['compileDir']))  {
-            mkdir($this->HTML_Template_Flexy['compileDir'], 0700);
-            @mkdir($this->HTML_Template_Flexy['compileDir'], 0700, true);
+            mkdir($this->HTML_Template_Flexy['compileDir'], 0700, true);
             clearstatcache();
              
             if ( !file_exists($this->HTML_Template_Flexy['compileDir']))  {