Bug getOnlineCounts() can be called multiple times in stock configuration and can be expensive

There is a bug in this version
X

Xon

Guest
SessionActivityRepository::getOnlineCounts() can be called by both the "online statistics" and "members online" widget in the same request, and this query can get expensive quickly. Especially as crawlers will bloat the session table, and can get stuck hammering pages sometimes.

Continue reading...