G4_USE_CACHE 추가
This commit is contained in:
@ -11,10 +11,10 @@ function latest($skin_dir='', $bo_table, $rows=10, $subject_len=40)
|
||||
$latest_skin_url = G4_SKIN_URL.'/latest/'.$skin_dir;
|
||||
|
||||
$cache_file = G4_DATA_PATH."/cache/latest-{$bo_table}-{$skin_dir}-{$rows}-{$subject_len}.php";
|
||||
if (!file_exists($cache_file)) {
|
||||
if (!G4_USE_CACHE || !file_exists($cache_file)) {
|
||||
$list = array();
|
||||
|
||||
$sql = " select * from $g4[board_table] where bo_table = '$bo_table'";
|
||||
$sql = " select * from {$g4['board_table']} where bo_table = '$bo_table'";
|
||||
$board = sql_fetch($sql);
|
||||
|
||||
$tmp_write_table = $g4['write_prefix'] . $bo_table; // 게시판 테이블 전체이름
|
||||
|
||||
Reference in New Issue
Block a user