X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=JsCompile.php;fp=JsCompile.php;h=a701c6e9c57a5f4a645986e39bc819bbf2041743;hb=caa6ee42b257e3b6f0bad8a8e36f9c2570a3d2f3;hp=5f9be53eb51b99d78df77d8e6ff189429f927716;hpb=c4b2dfbdfb92c92f27fc7e72261960d46c45fa03;p=Pman.Core 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) ) ) {