r7485 추가, cache_[0-9]+ 삭제

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7489 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2010-05-27 03:07:09 +00:00
parent 161435c0f2
commit 005213495d

View file

@ -43,7 +43,12 @@
}
// remove cache dir
FileHandler::removeDir($temp_cache_dir);
$tmp_cache_list = FileHandler::readDir('./files','/(^cache_[0-9]+)/');
if($tmp_cache_list){
foreach($tmp_cache_list as $tmp_dir){
if($tmp_dir) FileHandler::removeDir('./files/'.$tmp_dir);
}
}
$truncated = array();
$oObjectCacheHandler = &CacheHandler::getInstance();