Hi,
Alex, quite in same condition you give me advice to use the last UAM version.
In fact for me the problem was coming from the algorithm which is used when walk_category_tree is run, when a count of posts is requested. In such case for each node a complex DB request is launched by UAM hook. If you get 0 post for a large node nothing happens, if not I could got 1000 db request and reach a time out.
I have still many db requests (300 per post display) but this doesn’t overload the DB processes and I have divided the duration time by a 10th factor by suppressing the count of post into the widget which displays categories.
In my opinion the lonely solution should that Alex will build a request to get an array of all allowed post with their categories and attach the count of post for each node using a php algorithm. This new UAM function will answer much more faster to the question.
There are probably others cases of same type.
It is an opinion, but note that I spent near one month to find why my site was no more displaying anything (time out and overload of server resources)
May be this can help;
Best regards
Trebly