최신글 캐시 생성 주기 코드 수정

This commit is contained in:
thisgun
2020-03-18 11:55:32 +09:00
parent 94d04817c7
commit bf13cf82ee
3 changed files with 19 additions and 10 deletions

View File

@ -52,10 +52,10 @@ function g5_set_cache($key, $save_data, $ttl = null){
}
}
function g5_get_cache($key){
function g5_get_cache($key, $expired_time=0){
if( $cache = get_cachemanage_instance() ){
return $cache->get($key);
return $cache->get($key, $expired_time);
}
return false;