From dc4b3b56fe2fcb36a2415fec74421e4da69e7510 Mon Sep 17 00:00:00 2001 From: gnuboard Date: Thu, 7 Feb 2013 17:30:12 +0900 Subject: [PATCH] =?UTF-8?q?G4=5FUSE=5FCACHE=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/latest.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/latest.lib.php b/lib/latest.lib.php index 00fa6c97d..7cc89187f 100644 --- a/lib/latest.lib.php +++ b/lib/latest.lib.php @@ -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; // 게시판 테이블 전체이름