From caa6ee42b257e3b6f0bad8a8e36f9c2570a3d2f3 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 22 Mar 2016 18:07:55 +0800 Subject: [PATCH] JsCompile.php --- JsCompile.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) ) ) { -- 2.39.2