Similarly to T367172: Watchlist formatter is doing a user edit count database query in every row of the result inspecting Special:Watchlist that has gotten quite slow recently shows that 13% of loading watchlist page is being spent on doing database query: https://performance.wikimedia.org/excimer/profile/0a96d7cc5babe7eb
XhGui says MediaWiki\Cache\GenderCache::doQuery is getting called 97 times in one request: https://performance.wikimedia.org/xhgui/run/symbol?id=6668463540e83c26e289c1da&symbol=MediaWiki%5CCache%5CGenderCache%3A%3AdoQuery the caching seems to be clearly broken.
Stacktrace: