function category_get(){
global $mc;
global $ms;
if(!$category_get_json = $mc->get('category')){
try {
$category_get_sql = "SELECT * FROM category";
$category_get_sth = $ms->prepare($category_get_sql);
$category_get_sth->execute();
$category_get_res=$category_get_sth->fetchall((PDO::FETCH_ASSOC));
}catch (Exception $e) {echo $e->getMessage();}
$category_get_json = json_encode($category_get_res,JSON_UNESCAPED_UNICODE);
$mc->set('category',$category_get_json , false, 60);
}
return $category_get_json;
}