diff --git a/adm/cache_file_delete.php b/adm/cache_file_delete.php index c36e6054a..6a1156a45 100644 --- a/adm/cache_file_delete.php +++ b/adm/cache_file_delete.php @@ -12,39 +12,44 @@ include_once("./admin.head.php");
완료 메세지가 나오기 전에 프로그램의 실행을 중지하지 마십시오. -
-
-
-flush();
-
-if (!$dir=@opendir(G4_DATA_PATH.'/cache')) {
- echo "최신글 캐시디렉토리를 열지못했습니다.";
-}
-
-$cnt=0;
-while($file=readdir($dir)) {
- if ($file=='.' || $file=='..') continue;
-
- $cache_file = G4_DATA_PATH.'/cache/'.$file;
-
- if (!$atime=@fileatime($cache_file))
- continue;
-
- $cnt++;
- $return = unlink($cache_file);
- //echo "\n";
- echo "{$cache_file}
\n";
-
+
최신글 캐시디렉토리를 열지못했습니다.
"; + } else { + $list_tag_st = "최신글 캐시파일 {$cnt}건 삭제가 완료됐습니다.
프로그램의 실행을 끝마치셔도 좋습니다.
완료 메세지가 나오기 전에 프로그램의 실행을 중지하지 마십시오. -
- - -flush(); +
-if (!$dir=@opendir(G4_DATA_PATH.'/session')) { - echo "세션 디렉토리를 열지못했습니다."; -} + + flush(); -$cnt=0; -while($file=readdir($dir)) { - - if (!strstr($file,'sess_')) continue; - if (strpos($file,'sess_')!=0) continue; - - $session_file = G4_DATA_PATH.'/session/'.$file; - - if (!$atime=@fileatime($session_file)) { - continue; + $list_tag_st = ""; + $list_tag_end = ""; + if (!$dir=@opendir(G4_DATA_PATH.'/session')) { + echo "세션 디렉토리를 열지못했습니다.
"; + } else { + $list_tag_st = "세션데이터 {$cnt}건 삭제 완료.
프로그램의 실행을 끝마치셔도 좋습니다.