NOISSUE 성능개선, module_config, module_part_config, member_group 정보 cache 처리

This commit is contained in:
akasima 2013-12-26 16:36:36 +09:00
parent 0918ae8b7b
commit 8b1bab0e23
3 changed files with 49 additions and 10 deletions

View file

@ -537,11 +537,25 @@ class memberModel extends member
{
$site_srl = 0;
}
$args = new stdClass();
$args->site_srl = $site_srl;
$args->sort_index = 'list_order';
$args->order_type = 'asc';
$output = executeQueryArray('member.getGroups', $args);
$oCacheHandler = &CacheHandler::getInstance('object', null, true);
if($oCacheHandler->isSupport())
{
$cache_key = 'object_groups:'.$site_srl;
$output = $oCacheHandler->get($cache_key);
}
if(!$output)
{
$args = new stdClass();
$args->site_srl = $site_srl;
$args->sort_index = 'list_order';
$args->order_type = 'asc';
$output = executeQueryArray('member.getGroups', $args);
//insert in cache
if($oCacheHandler->isSupport()) $oCacheHandler->put($cache_key,$output);
}
if(!$output->toBool() || !$output->data)
{
return array();