mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 01:23:32 +09:00
NOISSUE 성능개선, module_config, module_part_config, member_group 정보 cache 처리
This commit is contained in:
parent
0918ae8b7b
commit
8b1bab0e23
3 changed files with 49 additions and 10 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue