From: Alan Knowles Date: Thu, 16 Aug 2018 00:37:19 +0000 (+0800) Subject: Asset.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=02c39cdf9d3284d5691ea4bf7b29a3a000956cbe Asset.php --- 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)); } - }