Hi.
Just a couple of questions:
1) I debugged while running the script, and I can't really see that $session[sessionhash] and $session[sessionurl] is used.
2) I'm not 100% sure how this works when it comes to performance, but when I debugged and looked at the available variables from the global.php there were a huge amount of vars and arrays that isnt needed at all.
Wouldn't it be best to only create objects of the things we really need (i.eg create the db object and get the $vbulletin[userinfo] array). If you i.eg look at $vbulletin['forumcache'] alone, it has over 408 arrays (depending on number of forums you have created) with 25 values each. Other unnecessary things are $header, headinclude, footer, etc etc.
Wouldn't this cause a higher load if this is processed everytime a page is viewed?
3) After doing this, my second DB object won't retrieve info in UTF-8 anymore, even though I have:
mysql_query( "SET NAMES 'utf8'", $myDBobj );
Any tips on how to solve this?
Thanks =)
|