|
|
|
|
@ -730,7 +730,7 @@ function getOnlineUsersCount() |
|
|
|
|
$number = 0; |
|
|
|
|
$cacheAvailable = api_get_configuration_value('apc'); |
|
|
|
|
if (!empty($cacheAvailable)) { |
|
|
|
|
$apcVar = api_get_configuration_value('apc_refix') . 'my_campus_whoisonline_count_simple'; |
|
|
|
|
$apcVar = api_get_configuration_value('apc_prefix') . 'my_campus_whoisonline_count_simple'; |
|
|
|
|
if (apcu_exists($apcVar)) { |
|
|
|
|
$number = apcu_fetch($apcVar); |
|
|
|
|
} else { |
|
|
|
|
@ -756,7 +756,7 @@ function getOnlineUsersInCourseCount($userId, $_course) |
|
|
|
|
$numberOnlineInCourse = 0; |
|
|
|
|
if (!empty($_course['id'])) { |
|
|
|
|
if (!empty($cacheAvailable)) { |
|
|
|
|
$apcVar = api_get_configuration_value('apc_refix') . 'my_campus_whoisonline_count_simple_' . $_course['id']; |
|
|
|
|
$apcVar = api_get_configuration_value('apc_prefix') . 'my_campus_whoisonline_count_simple_' . $_course['id']; |
|
|
|
|
if (apcu_exists($apcVar)) { |
|
|
|
|
$numberOnlineInCourse = apcu_fetch($apcVar); |
|
|
|
|
} else { |
|
|
|
|
|