From 70ba75a986b49965c17726107b7d4d3bf5dd72a0 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 24 Oct 2007 12:03:54 +0000 Subject: [PATCH] Added clearstatcache() to prevent wrong modify timestamps git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7640 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_hostActionQueue.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/class_hostActionQueue.inc b/include/class_hostActionQueue.inc index efe3359a4..a81328d30 100644 --- a/include/class_hostActionQueue.inc +++ b/include/class_hostActionQueue.inc @@ -80,7 +80,7 @@ class hostActionQueue { return(FALSE); } $this->i_fileversion = filemtime($this->s_queue_file); - echo $this->i_fileversion."reload
"; + 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); } -- 2.30.2