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.com
I just used it now and there is no difference to my site's speed
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,
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,
So how can I increase my template size or what do you recommend I do.
Check your config.php for missing quotes.
How do I get access to the config.php, and what do you mean by missing quotes.
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
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.
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.
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.
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:
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...
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
Viewing 15 lines of 58 lines. View entire code block.
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...
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..
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..
*thumbs up* for weyboat.
@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 ?>
To improve my site's speed I tried this :http://andrewembler.com/posts/improving-the-performance-of-zend-cac... with success.
This suggested helped our site tremendously. Thanks!
Thanks for this link, it made a huge difference to our sites
This made a HUGE difference - thank you so much!
http://www.webpagetest.org/
Might give you some help.