Fixed Displaying Age on a message postbits can cause N+1 query behaviour

Xon

Well-known member
Affected version
2.0.12
Checking "Age" in the style property Message user info elements can cause an unexpected large number of queries to be added per thread.

This is because it touches $user.Profile.age, and the Profile is not loaded by default.
 
Thank you for reporting this issue. The issue is now resolved and we are aiming to include that in a future XF release (2.0.13).

Change log:
Load User.Option when loading a full version of a post, as these values may be used when displaying additional message components (such as age)
Any changes made as a result of this issue being resolved may not be rolled out here until later.
 
Back
Top Bottom