mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 16:22:41 +09:00
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:
parent
bd6be95b08
commit
35a23caba8
12 changed files with 12 additions and 61 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue