글,댓글 쓰기시 캐시파일 삭제

This commit is contained in:
gnuboard
2013-02-19 13:03:56 +09:00
parent 57f617b2bd
commit 06f2c72d84
6 changed files with 28 additions and 15 deletions

View File

@ -1732,4 +1732,13 @@ function check_device($device)
alert('모바일 전용 게시판입니다.', G4_URL);
}
}
// 게시판 최신글 캐시 파일 삭제
function delete_cache_latest($bo_table)
{
foreach (glob(G4_DATA_PATH.'/cache/latest-'.$bo_table.'-*') as $filename) {
unlink($filename);
}
}
?>