From: Alan Knowles Date: Tue, 22 Mar 2016 10:07:55 +0000 (+0800) Subject: JsCompile.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=caa6ee42b257e3b6f0bad8a8e36f9c2570a3d2f3 JsCompile.php --- diff --git a/JsCompile.php b/JsCompile.php index 5f9be53e..a701c6e9 100644 --- a/JsCompile.php +++ b/JsCompile.php @@ -286,6 +286,11 @@ class Pman_Core_JsCompile extends Pman echo ''; return true; } + + if (file_exists($output) { + unlink($output); + } + //var_dump($output); if (!file_exists(dirname($output))) { mkdir(dirname($output), 0755, true); @@ -323,7 +328,7 @@ class Pman_Core_JsCompile extends Pman echo ""; - + clearstatcache(); // we should do more checking.. return val etc.. if (file_exists($output) && ($max < filemtime($output) ) ) {