Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader
Reply
  #1  
Old 20th February 2012, 22:12
xenu xenu is offline
Member
 
Join Date: Dec 2011
Ukraine
Posts: 8
Default AdminCP slow
I noticed that everytime the Torrent Trader forum is down that AdminCP is always very slow. Anyone know why?
Reply With Quote
  #2  
Old 20th February 2012, 22:43
Phogo's Avatar
Phogo Phogo is offline
VIP
 
Join Date: Jan 2008
United Kingdom
Posts: 902
Default
Without looking, its probably a call back to check for an updated version or something. Have you looked in the code at all?
Reply With Quote
  #3  
Old 21st February 2012, 00:41
xenu xenu is offline
Member
 
Join Date: Dec 2011
Ukraine
Posts: 8
Default
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.

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 "<br /><center><b>".T_("YOU_HAVE_LATEST_VER_INSTALLED")." v$site_config[ttversion]</b></center>";
		}else{
			echo "<br /><center><b><font color='#ff0000'>".T_("NEW_VERSION_OF_TT_NOW_AVAIL").": v".$file." you have v".$site_config['ttversion']."<br /> Please visit <a href=http://www.torrenttrader.org>TorrentTrader.org</a> to upgrade.</font></b></center>";
		}
	}
Reply With Quote
  #4  
Old 21st February 2012, 20:32
DAKz's Avatar
DAKz DAKz is offline
Senior Member
 
Join Date: Jul 2009
P2P
Posts: 380
Wink 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.
Reply With Quote
Reply

Tags
admincp , slow

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 11:09. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.