Optimization: Remove apcu_clear_cache() call which was resetting the whole cache everytime the online users count was refreshed - refs BT#12052

pull/2487/head
Yannick Warnier 8 years ago
parent 5985821b58
commit 260ee40e5c
  1. 1
      main/inc/lib/banner.lib.php

@ -742,7 +742,6 @@ function getOnlineUsersCount($cacheEnabled = false)
$number = apcu_fetch('my_campus_whoisonline_count_simple');
} else {
$number = who_is_online_count(api_get_setting('time_limit_whosonline'));
apcu_clear_cache();
apcu_store('my_campus_whoisonline_count_simple', $number, 15);
}
} else {

Loading…
Cancel
Save