5.4 버전 hook 이벤트 추가 및 hook 추적에 Object도 가능하게 수정

This commit is contained in:
thisgun
2020-10-19 18:21:17 +09:00
parent df9891e68b
commit 94d04817c7
7 changed files with 57 additions and 13 deletions

View File

@ -70,11 +70,10 @@ function get_board_db($bo_table, $is_cache=false){
static $cache = array();
$bo_table = preg_replace('/[^a-z0-9_]/i', '', $bo_table);
$cache = run_replace('get_board_db_cache', $cache, $bo_table, $is_cache);
$key = md5($bo_table);
$bo_table = preg_replace('/[^a-z0-9_]/i', '', $bo_table);
if( $is_cache && isset($cache[$key]) ){
return $cache[$key];
}