It seems that moderator permission of each forum is not cached, therefore if a site has 50 forums and subforums, if a user access to index.php, MyBB will do at least 50 queries to obtain is_moderator of that forum. The problem comming from get_moderator_permissions functions and is_moderator function in functions.php. Should we do some caching here?
[F] is_moderator is not cached
If a user is not admin and super modder, it will generate alot of queries if there are many sub-forums especially the index.php.
These similar queries just repeat many times:
You can take a look at my site at http://mkportal.thevnchannel.com/support/index.php . I also activate debug info for registered users so you will know what's wrong. Currently it generate more than 70 queries in that index forum even I turned the modlist off.
Ok let's start this thread all over again (I split the other posts here).
Tikitiki's working on a fix for this.
Former MyBB Team Member
03-16-2007, 03:44 AM
This bug has been fixed in the latest code.
Please note the latest code is not live on the site or for download. An update will be released which contains this fix.
This issue is not solved in MyBB 1.2.7 yet. It's still using many queries to obtain is_moderator forums and subforums. You can take a look here. I created some forum for testing.
(The testing forum is on a free server which is not stable, You may have to try some times to reach this page)
05-17-2007, 10:21 PM
This is only fixed for MyBB 1.4 because it requires a rewrite of the Moderator Cache and that is also why you didn't receive a response for a fix.
05-18-2007, 12:11 AM
I asked so because it was listed in Fixed Bug List in MyBB 1.2.7 Released - Security & Maintenance Release.
So if it is not fixed yet. It should be taken out of that list.
05-18-2007, 12:32 AM
Users browsing this thread: 1 Guest(s)