Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 03-29-2009, 05:55 PM
rosepose rosepose is offline
Member
 
Join Date: Jan 2009
Posts: 127
Credits: 10,498
rosepose
Default oh dear.

My site keeps crashing due to CPU overloads. Apparently it's because there a ton of hotlinking and stuff going on, if there any way for me to minimize this?

-Rose
Reply With Quote
  #2  
Old 03-29-2009, 07:18 PM
kisazeky kisazeky is offline
Member
 
Join Date: Mar 2009
Posts: 44
Credits: 18,946
kisazeky
Default RE: oh dear.

Easy just put your adoptable images on a separate host like photobucket.
Reply With Quote
  #3  
Old 03-29-2009, 07:36 PM
rosepose rosepose is offline
Member
 
Join Date: Jan 2009
Posts: 127
Credits: 10,498
rosepose
Default RE: oh dear.

Yes, but that doesn't edit the existing adoptables :3
Reply With Quote
  #4  
Old 03-29-2009, 07:42 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,556
BMR777 is on a distinguished road
Default RE: oh dear.

One thing I recommend you do is DISABLE the featured adoptable. The method that it uses to select the featured adoptable can use some CPU resources if your site has a lot of hosted adoptables.

In functions.php find and delete:

PHP Code:
$conn mysql_connect($dbhost$dbuser$dbpass) or die ('Error connecting to mysql database!');
mysql_select_db($dbname);

$sql_query "SELECT * FROM owned_adoptables ORDER BY RAND() LIMIT 1";
$result mysql_query($sql_query);

if(
mysql_num_rows($result))
{
    while(
$row mysql_fetch_row($result))
    {
    
$id=@mysql_result($result,$i,"uid");
    
$name=@mysql_result($result,$i,"name");
    
$imageurl=@mysql_result($result,$i,"imageurl");
    
$currentlevel=@mysql_result($result,$i,"currentlevel");
    
$totalclicks=@mysql_result($result,$i,"totalclicks");
    
$owner=@mysql_result($result,$i,"owner");

    
$content "<p><img src='".$imageurl."' id='me' alt='Featured Adoptable'>
                    <strong><a href='show.php?id="
.$id."'>".$name."</a></strong><br />
                    Level: "
.$currentlevel."<br />
                    Owner: "
.$owner."<br />
                    <a href='levelup.php?id="
.$id."'>Add more HP</a></p>";


    }
}
else
{
$error "No Adoptables!";
return 
$error;

That should help save some CPU for your site. :)
Reply With Quote
  #5  
Old 03-29-2009, 08:19 PM
rosepose rosepose is offline
Member
 
Join Date: Jan 2009
Posts: 127
Credits: 10,498
rosepose
Default RE: oh dear.

Thanks, I did that :3 *pokes her server* I sent them a help message asking about it.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Oh Dear, I Broke My Site... Brookreed Questions and Supports 3 08-19-2013 09:43 PM


All times are GMT -5. The time now is 04:32 AM.

Currently Active Users: 676 (0 members and 676 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636