Code

Added clearstatcache() to prevent wrong modify timestamps
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Oct 2007 12:03:54 +0000 (12:03 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Oct 2007 12:03:54 +0000 (12:03 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7640 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_hostActionQueue.inc

index efe3359a4e12e59e74139848cdb8356728ae902c..a81328d30247abde985895d33fe2168d422e3c2f 100644 (file)
@@ -80,7 +80,7 @@ class hostActionQueue {
       return(FALSE);
     }
     $this->i_fileversion = filemtime($this->s_queue_file);
-    echo $this->i_fileversion."reload<br>";
+    clearstatcache();
  
     /* Get file contents */
     $data ="";
@@ -239,7 +239,9 @@ class hostActionQueue {
     $str .= "\n";
     fwrite($fp,$str);
     fclose($fp);
+    clearstatcache();
     $this->i_fileversion = filemtime($this->s_queue_file);
+    clearstatcache();
     return(TRUE);
   }