Help!!.. my site is extremely slow

Permalink
Am a bit of a novice so if could please help that will be great. My website ishttp://www.47vids.com. And I find it a real pain logging on/in to my website to view or create pages. I would appreciate any help I can get. Even pingdom.com says my website is 95 percent slower than other websites. Please help because I am getting really frustrated.
47vids.com

47vids
View Replies:
Steevb replied on at Permalink Reply
Steevb
Try pushing it through:

http://www.webpagetest.org/

Might give you some help.
47vids replied on at Permalink Reply
47vids
I just used it now and there is no difference to my site's speed
weyboat replied on at Permalink Reply
weyboat
No Surprise really..
Your template is only 8.81kB in size but your content is hundreds of kB
The dashboard will not load until the page has finished loading, the page is bogged down trying to load all the images,
47vids replied on at Permalink Reply
47vids
So how can I increase my template size or what do you recommend I do.
Phallanx replied on at Permalink Reply
Phallanx
Check your config.php for missing quotes.
47vids replied on at Permalink Reply
47vids
How do I get access to the config.php, and what do you mean by missing quotes.
Phallanx replied on at Permalink Reply 1 Attachment
Phallanx
Sorry. I meant "site.php" in the "config" directory (<root>/config)

You can access the file either by FTP or using the file manager in your cPanel (or equivalent).

Defines within this file are of the form
define('name', value);


I've attached an image of my "site.php" which shows the "quotes". Where they are used; they always appear in pairs. So just check that where a quote is "opened" there is also one which "closes" the value.

I have come across numerous scenarios where a missing quote (people usually forget the closing quote) causes extremely long initial load times rather than an error.
47vids replied on at Permalink Reply
47vids
I have checked but there doesn't seem to be a missing quote or would you like to check. I could DM you my server login if you want.
adajad replied on at Permalink Reply
adajad
Testing your site out there is at least one thing you can do to speed it up some - cache static content. Your biggest problem though, is the time to first byte which is out of your control unless you switch host. For now my guess is you are on a shared host with many sites on the same server.

Anyways, add the below to your .htaccess file:
# set browser caching
ExpiresActive On
ExpiresByType image/gif A604800
ExpiresByType image/png A604800
ExpiresByType image/jpeg A604800
ExpiresByType image/x-icon A604800
ExpiresByType application/pdf A604800
ExpiresByType application/x-javascript A604800
ExpiresByType text/plain A604800
ExpiresByType text/css A604800
ExpiresByType video/x-flv A29030400
ExpiresByType video/quicktime A29030400
# end browser caching
# TIME CHEAT SHEET
#      300   5 MIN


I included a cheat sheet so you can change the caching to your liking.

What the above does is telling the browsers how long they should keep a cached copy of your sites content before requesting it again. The 'A' before the number of seconds means since last access of the content. If you want the content to be cached from last modification time instead, then change all 'A' to 'M' instead.

More info can be found here: http://httpd.apache.org/docs/2.0/mod/mod_expires.html#expiresbytype...
weyboat replied on at Permalink Reply
weyboat
An added complication is a 301 redirect being called fromhttp://www.47vids.com tohttp://47vids.com
The time to first byte for thehttp://www.47vids.com is 2.346 seconds
and thehttp://47vids.com response time is 22.594 seconds,
During the page load thehttp://47vids.com address is being called twice which is adding another 23 or so seconds to the page load time,
Check your htaccess file for a 301 redirect declaration and try removing it to see if that improves your load time..
adajad replied on at Permalink Reply
adajad
*thumbs up* for weyboat.
mkly replied on at Permalink Reply
mkly
@Phallax is most likely on the right track. I would check and recheck your site.php for extra lines at the end, spaces or any extra white space outside of the
<?php
// There shouldn't be a single space, line, anything outside of the php tags
?>
Philnext replied on at Permalink Reply
To improve my site's speed I tried this :http://andrewembler.com/posts/improving-the-performance-of-zend-cac... with success.
tnblumer replied on at Permalink Reply
tnblumer
This suggested helped our site tremendously. Thanks!
cmcg replied on at Permalink Reply
Thanks for this link, it made a huge difference to our sites
ajahnke replied on at Permalink Reply
This made a HUGE difference - thank you so much!