mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-24 21:03:19 +09:00
레이아웃 클래스에서 캐시파일 제거하는 코드 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3836 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
69b8aac6ea
commit
512c25d644
1 changed files with 12 additions and 0 deletions
|
|
@ -44,6 +44,18 @@
|
|||
* @brief 캐시 파일 재생성
|
||||
**/
|
||||
function recompileCache() {
|
||||
// 레이아웃 캐시 삭제 (수정본은 지우지 않음)
|
||||
$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;
|
||||
@unlink($path."/".$entry);
|
||||
}
|
||||
$directory->close();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue