Issue 145

modify recompileCache() in modules


git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8984 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2011-09-02 04:44:12 +00:00
parent bd6be95b08
commit 35a23caba8
12 changed files with 12 additions and 61 deletions

View file

@ -71,19 +71,11 @@
* @brief Re-generate the cache file
**/
function recompileCache() {
// Remove layout cache(modified layout is not deleted)
$path = './files/cache/layout';
if(!is_dir($path)) {
FileHandler::makeDir($path);
return;
}
$directory = dir($path);
while($entry = $directory->read()) {
if ($entry == "." || $entry == ".." || preg_match('/\.html$/i',$entry) ) continue;
FileHandler::removeFile($path."/".$entry);
}
$directory->close();
}
}
?>