Website ridiculously slow.

Status
Not open for further replies.

jaybejay

New Member
Messages
3
Reaction score
0
Points
1
My website simply consists of a small database and a simple PHP script to show the data.
It is clearly visible by the user that the server takes 10-20 seconds to show the webpage.
I used an online ping test, and it said the server took 20.28 seconds to show the page.

My server is xo1.
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi jaybejay,

I took a look at the source code of your webpage, and it appears that for every single row your script outputs, it queries some form of API on an external server (on a .tk domain) using PHP's file_get_contents();

Each API call appears to take approximately 0.5 seconds to complete.

As you have approximately 24 rows being displayed, the API calls will, in total, take 12 seconds to complete. This appears to be what is delaying your webpage.

To prevent this, you may want to look into different methods of grabbing this information rather than creating 24 API calls every time someone loads the page, such as caching.

Thank you,
 
Status
Not open for further replies.
Top