![]() |
I'm new hacker of vBulletin. So backup your index.php first:-)
(1) find: Code:
$categorys=$DB_site->query("SELECT categoryid,title,displayorder FROM category WHERE displayorder<>0 ORDER BY displayorder"); Code:
$forummoderators=$DB_site->query("SELECT user.username,forumid FROM forumpermission,user WHERE user.usergroupid=forumpermission.usergroupid AND canadminedit=1"); Code:
$forummoderators=$DB_site->query("SELECT user.username,user.usergroupid FROM forumpermission,user WHERE user.usergroupid=forumpermission.usergroupid AND canadminedit=1 AND forumid=$forumid"); Code:
if ($mod[$forumid]){ AGAIN please backup your index.php first,I'm not sure if it's bug free. |
What's it do?
:D |
it's a hack to speed the showforums section of index.php up.
in the original code,Select moderators from forumpermission ... where forumid=1,2,3... every forum. I hack it by select all moderators once. |
Ah, yes, that clears up alot ;)
|
If this works as advertised then it should actually speed up alot of forums as that query is a severe hit, especially if their is no indexes on the user table.
|
All times are GMT. The time now is 11:42 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|