projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4b2dfb
)
JsCompile.php
author
Alan Knowles
<alan@roojs.com>
Tue, 22 Mar 2016 10:07:55 +0000
(18:07 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 22 Mar 2016 10:07:55 +0000
(18:07 +0800)
JsCompile.php
patch
|
blob
|
history
diff --git
a/JsCompile.php
b/JsCompile.php
index
5f9be53
..
a701c6e
100644
(file)
--- a/
JsCompile.php
+++ b/
JsCompile.php
@@
-286,6
+286,11
@@
class Pman_Core_JsCompile extends Pman
echo '<!-- use cached compile. -->';
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 "<!-- Compiled javascript
" . htmlspecialchars($res) . "
-->";
-
+ clearstatcache();
// we should do more checking.. return val etc..
if (file_exists($output) && ($max < filemtime($output) ) ) {