Apply cache even when the member does not exist

탈퇴한 회원을 계속 DB에서 찾는 문제 수정
This commit is contained in:
conory 2022-04-16 14:37:18 +09:00
parent 4463eb8939
commit 0984b751e8
2 changed files with 10 additions and 8 deletions

View file

@ -415,12 +415,14 @@ class memberModel extends member
$args = new stdClass();
$args->member_srl = $member_srl;
$output = executeQuery('member.getMemberInfoByMemberSrl', $args);
if(!$output->data)
if($output->data)
{
return new stdClass;
$member_info = self::arrangeMemberInfo($output->data);
}
else
{
$member_info = new stdClass;
}
$member_info = self::arrangeMemberInfo($output->data);
if($output->toBool())
{
Rhymix\Framework\Cache::set($cache_key, $member_info);