mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-20 10:52:14 +09:00
#190 각 모듈의 class파일에 recompileCache() method 추가하고 admin모듈에서 모든 모듈의 recompileCache() method를 호출하게 하여 깔끔한 캐시파일 재정리가 가능하도록 기능 추가
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2664 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2b8fca8654
commit
6647883063
34 changed files with 256 additions and 2 deletions
|
|
@ -42,5 +42,29 @@
|
|||
return new Object();
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 캐시 파일 재생성
|
||||
**/
|
||||
function recompileCache() {
|
||||
|
||||
// 템플릿 컴파일 파일 삭제
|
||||
FileHandler::removeFilesInDir("./files/cache/template_compiled");
|
||||
|
||||
// optimized 파일 삭제
|
||||
FileHandler::removeFilesInDir("./files/cache/optimized");
|
||||
|
||||
// js_filter_compiled 파일 삭제
|
||||
FileHandler::removeFilesInDir("./files/cache/js_filter_compiled");
|
||||
|
||||
// queries 파일 삭제
|
||||
FileHandler::removeFilesInDir("./files/cache/queries");
|
||||
|
||||
// ./files/cache/news* 파일 삭제
|
||||
$directory = dir("./files/cache/");
|
||||
while($entry = $directory->read()) {
|
||||
if(substr($entry,0,11)=='newest_news') @unlink("./files/cache/".$entry);
|
||||
}
|
||||
$directory->close();
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue