X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Asset.php;h=407ffb7bb17ac0db1a8100a28b61d46b2261fdae;hb=02c39cdf9d3284d5691ea4bf7b29a3a000956cbe;hp=da3b7d1223bdf71e36d442a3b009e9ab81b378dc;hpb=526c884c7812a683c532dd496caa99c5b6ac76fc;p=Pman.Core diff --git a/Asset.php b/Asset.php index da3b7d12..407ffb7b 100644 --- a/Asset.php +++ b/Asset.php @@ -169,22 +169,20 @@ class Pman_Core_Asset extends Pman { function clearCompiledFilesCache($module) { - + require_once 'System.php'; $mods = $this->modulesList(); - $url = "http://localhost{$this->local_base_url}/Core/Asset"; - 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)); } - }