projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
526c884
)
Asset.php
author
Alan Knowles
<alan@roojs.com>
Thu, 16 Aug 2018 00:37:19 +0000
(08:37 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 16 Aug 2018 00:37:19 +0000
(08:37 +0800)
Asset.php
patch
|
blob
|
history
diff --git
a/Asset.php
b/Asset.php
index
da3b7d1
..
407ffb7
100644
(file)
--- a/
Asset.php
+++ b/
Asset.php
@@
-169,22
+169,20
@@
class Pman_Core_Asset extends Pman {
function clearCompiledFilesCache($module)
{
function clearCompiledFilesCache($module)
{
-
+ require_once 'System.php';
$mods = $this->modulesList();
$mods = $this->modulesList();
- $url = "http://localhost{$this->local_base_url}/Core/Asset";
-
foreach ($mods as $mod) {
$compile_dir = $this->getCompileDir('js', $module, false);
foreach ($mods as $mod) {
$compile_dir = $this->getCompileDir('js', $module, false);
- if(empty($compile_dir)) {
-
continue
;
+ if(
!
empty($compile_dir)) {
+
System::rm(array('-r', $compiledir))
;
}
}
-
- foreach(glob($compile_dir.'/*.*') as $v){
- unlink($v);
+ $compile_dir = $this->getCompileDir('css', $module, false);
+
+ if(!empty($compile_dir)) {
+ System::rm(array('-r', $compiledir));
}
}
-
}
}