Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Trader (http://www.bvlist.com/forumdisplay.php?f=29)
-   -   AdminCP slow (http://www.bvlist.com/showthread.php?t=7650)

xenu 20th February 2012 22:12

AdminCP slow
 
I noticed that everytime the Torrent Trader forum is down that AdminCP is always very slow. Anyone know why?

Phogo 20th February 2012 22:43

Without looking, its probably a call back to check for an updated version or something. Have you looked in the code at all? :sad:

xenu 21st February 2012 00:41

yes I just checked the code now, and I notice the call back to get the version number to http://torrenttrader.org/tt2version.php in admincp.php. I guess that's the issue, I'll play around with it and see what happens. :muscle:

Edit: I deleted the following code, and it went just fine.


Code:

if ($site_config["ttversion"] != "2-svn") {
                $file = @file_get_contents('http://www.torrenttrader.org/tt2version.php');
                if ($site_config['ttversion'] >= $file){
                        echo "
".T_("YOU_HAVE_LATEST_VER_INSTALLED")." v$site_config[ttversion]
";
                }else{
                        echo "
".T_("NEW_VERSION_OF_TT_NOW_AVAIL").": v".$file." you have v".$site_config['ttversion']." Please visit TorrentTrader.org to upgrade.
";
                }
        }


DAKz 21st February 2012 20:32

an interesting trick....
 
I haven't gone through this source since I never had a problem with it being slow, but I do know that in the tsse releases the rules and the faq in the db is formatted with "/" in front of and behind the text in the tables, this really slows the overall performance of the code way way down, and God help you if you ever click on the faq I have seen it take minutes to load. The to simple fix for that code is to simply remove the "/" from those table in the db and speed the entire site up.
Not saying this is the issue here, since I never had a performance problem with TT but might be something to look into if the other suggestions fail.


All times are GMT +2. The time now is 04:20.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.