Fixed 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.
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.8).

Change log:
Cache user online counts in the same request to reduce query usage
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom