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

Xon

Well-known member
Affected version
2.3.7
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.
 
Back
Top Bottom