Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Slow WordPress Need CDN

Posted on 2014-03-22
10
309 Views
Last Modified: 2014-03-27
I've got a site that is extremely slow:

https://neweragems.com

Speed tests say I need to

Serve static content from a cookieless domain
Remove query strings from static resources
Leverage browser caching

I'm not sure how to do this.

The entire site runs under SSL.

Please help.
0
Comment
Question by:webdork
  • 5
  • 4
10 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 39947815
Install a caching plugin. WP Super Cach is the best one for beginners.
0
 
LVL 32

Accepted Solution

by:
DrDamnit earned 500 total points
ID: 39947826
You can sign up for CDN using rackspace cloud files (http://www.rackspace.com/cloud/files/). This allows the static content to be served quickly and from the server closest to the viewer.

Once you get a Rackspace account, you can use Cyberduck to access and upload files, then, change all your links and other content to use the CDN links instead of yourdomain.com.

Example:

www.yourdomain.com/js/javascript.js becomes http:///09823asdfa9p8u098asd089hj3.cdn.rackspace.com/javascript.js

...same for images, same of stylesheets.

Removing query strings from static resources means don't use a script to serve static resources. Some places thing it's neat to use a PHP script (for example) to concatenate a bunch of things together.

Example:
<link rel="stylesheet" type="text/css" href="getstyles.php?style=themestyles&use=special">

And, lastly, BrowserCaching is when you tell the webserver that images and static content can be kept and reused for a period of time, so they don't have to be re-downloaded.

You can generally do this via .htaccess. See: http://httpd.apache.org/docs/2.2/mod/mod_expires.htmL


Now, that being said, looking at your site itself, you hare makeing 106 REQUESTS to load the page. (DOwnload Firebug for firefox, turn it on, make sure the NET tab is enabled, clear cache and history, then browse to your page).

It's painfully slow.

It looks like you have so many javascript / jquery / css plugins running that the loop in wordpress is spending too much time trying to find and serve these things.

But this line in particular:
https://neweragems.com/wp-admin/admin-ajax.php?action=wordfence_logHuman&hid=468901867DC95F9C70A720C684106250

is adding 1.89 seconds to the load speed. I'll bet if you disable wordfence (temporarily) you'll see a big boost in speed. You'll probably need to tune wordfence to keep the speed boost from having it off.

The index page itself is waiting for over a second to serve the page as well, which is an indicator that you probably need better hosting. If you're on cheap shared hosting, that's one issue. You need a lot more cpu cycles available to render all these plugins - especially those that are creating your slider and carousel.
0
 

Author Comment

by:webdork
ID: 39947827
I installed Super Cache. Now I cannot see any content on any page.
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:webdork
ID: 39947836
Thanks Michael Munger,

Wont content served without SSL throw a security warning since my entire site runs under SSL?

If yes, should I just run checkout under SSL?
0
 
LVL 32

Expert Comment

by:DrDamnit
ID: 39947845
You're correct. So you'd need to use the SSL links rackspace provides.
0
 

Author Comment

by:webdork
ID: 39947848
They want too much money. I need a different solution.
0
 
LVL 32

Expert Comment

by:DrDamnit
ID: 39947900
Not sure you read that correctly... They wan 10 cents ($0.10) for 1GB per month for storage.

http://www.rackspace.com/cloud/files/pricing/

How many GB do you have?
0
 

Author Comment

by:webdork
ID: 39948023
The chat guy quoted me $150/mo.

How do I tell how much GB I have? Is it just file size?
0
 
LVL 32

Expert Comment

by:DrDamnit
ID: 39948165
Chat guy is an idiot.

If you downloaded your entire website, including images and video,  how much space on your hard drive would it take up?
0
 

Author Closing Comment

by:webdork
ID: 39959675
Excellent detailed answer.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you think that WordPress is just for blogs?  Think again!  WordPress is really a fantastic all around platform that you can use to develop websites on.  Integrated into its basic functionality is the ability to create pages using your choice of a…
In Part I (http://www.experts-exchange.com/Web_Development/Blogs/WordPress/A_8410-Getting-Started-In-WordPress-Part-I.html), I introduced you to the powerful WordPress backend, the WordPress administrative Dashboard.  In Part II, I will introduce yo…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…

838 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question