SlideShare a Scribd company logo
1 of 25
Download to read offline
Improve WordPress Site Speed with W3 Total Cache +
Cloudflare
mprstudio.com/speed-up-wordpress-w3-total-cache-cloudflare/
Is your website painfully slow? Does it take forever to load? If you answered yes to those questions, you have
a problem on your hands.
It’s important to mention that there are a number of things that can greatly affect your website speed, including the
following:
Your hosting – some hosting providers are terrible (GoDaddy comes to mind), and should be avoided at all
costs. If you have a crappy hosting plan, your site will be slow, period. If you see “reduce server response
time” in your Google Page Speed Insights, then your hosting is slow and you should find a better web host.
The quality of coding in your theme – multi-purpose themes are super bloated and full of features that most
people never even use. Instead of choosing a multi-purpose theme, try to select one that will fit your site’s
needs, but is not overkill.
The amount of WordPress plugins you use on your site. As a general rule, you want to keep the amount of
plugins you use to a minimum.
The speed at which your website loads is extremely important, and cannot be overlooked. Honestly, it makes a
terrible first impression on those unfortunate people who happen to stumble onto your site. The bottom line is that
visitors simply will not wait for your site to load. Instead, they will look for what they need somewhere else, praying
that the next site loads faster than yours.
There are a couple things you can do to speed up your WordPress website, and they won’t cost you a dime. In this
post, you will learn how to configure the W3 Total Cache plugin to use it in conjunction with the free version of
Cloudflare CDN (Content Delivery Network). In addition to speeding up your website, it will make it more secure as
well.
1/25
Table of Contents
Configuring W3 Total Cache
1. General Settings
2. Page Cache
3. Minify
4. Database Cache
5. Object Cache
6. Browser Cache
7. Extensions
8. Cloudflare
Configuring Cloudflare
Changing DNS records
Speed settings
Adding page rules
Purge all caches
Common Problems
What is W3 Total Cache?
A caching plugin is a must-have for your WordPress website, and should be one of the first plugins you install.
WordPress is a database-driven content management system (CMS) which relies on queries to and from a MySQL
database to fetch and render both pages and posts. W3 Total Cache is a plugin that improves the user experience of
your site by caching every aspect of your website, resulting in improved user experience and enhanced server
performance. W3 Total Cache reduces website download times by creating static copies of your pages and posts,
which makes them load more quickly.
Take the performance of your site even further by using W3 Total Cache in conjunction with the free version of
Cloudflare CDN. See all free and paid Cloudflare plans to make sure the free version will work with your site.
Save yourself some time and download my recommended W3 Total Cache settings instead of going through the
guide below.
To upload them, go to Performance > General Settings, then click on the Import/Export Settings button.
You will have to adjust a couple things to reflect your site, but it will still save you a good amount of time. Make sure
you enter your URL in the settings under Performance > Extensions > Cloudflare. You do not need a DropBox
account to download the file, just click on the link and the download will start.
Configuring W3 Total Cache
2/25
The W3 Total Cache settings are quite extensive, and it is difficult to know which settings are best for optimal
performance. I will walk you through all the different settings with the help of images.
1. General Settings
3/25
4/25
5/25
6/25
7/25
8/25
2. Page Cache
9/25
10/25
11/25
3. Minify
If you’re going to use Cloudflare, Minify should be disabled in General Settings – it will be handled by Cloudflare
instead. If you’re NOT going to use Cloudflare, then the default settings are recommended.
4. Database Cache
It is recommended that you use the default settings.
5. Object Cache
The default settings should be used here as well.
6. Browser Cache
7. Extensions
12/25
In the Extensions tab, activate Cloudflare, as well as any other extensions you are using. I currently have both
Cloudflare and Yoast SEO activated, but everything else is turned off. Your situation may be different, and you may
have more extensions enabled.
After you activate Cloudflare, click on Settings and configure the extension as seen below.
8. Cloudflare
13/25
14/25
15/25
16/25
Enable hotlink protection to prevent crappy websites from using your images on their site, while you’re still hosting
them. They do this by posting an image link on their site which refers to the image hosted on your website. It eats up
your hosting bandwidth, and can put a huge strain on your hosting server. It’s a good idea to regularly monitor the
links to your site using Google Search Console.
After you have configured the Cloudflare extension settings in W3 Total Cache, you will need to create a Cloudflare
account.
What is Cloudflare?
Cloudflare is a company that provides a variety of helpful features, including a Content Delivery Network,
performance and security optimization, as well as website analytics. By using it in conjunction with W3 Total Cache,
you can drastically improve both the speed and security of your WordPress website.
You can get started with the free version Cloudflare in just a few minutes. Simply follow this step-by-step guide and
you’ll have it up and running in no time.
Configuring Cloudflare
To register, simply enter your email address and desired password, then click Sign Up. You will then need to check
your email to confirm your account. After you let them know that you’re not a robot, you can proceed with the setup.
After you login to your account, click the + Add Site link in the upper right hand corner.
Enter your website url in the box, then click the Begin Scan button.
17/25
Next, you will click Continue Setup.
Then, scroll all the way down and click on Continue.
Select ‘Free Website’, then continue.
18/25
Changing DNS records
At this point, Cloudflare will provide you with two nameservers to use. You will have to change the DNS records at
your registrar. In most cases your registrar will be the same as your hosting provider, but not always (e.g. I
purchased my domain name for http://reyherphoto through GoDaddy, but host the site on InMotion Hosting).
In order to change your nameservers, do a search on Google for “change DNS + name of your registrar.” You will
simply replace the old nameservers with the new Cloudflare ones using the custom nameservers option. Now, you
can head back over to Cloudflare and click on I’ve added all missing records, continue.
Speed settings
19/25
At this point, you will configure Cloudflare for optimal performance.
20/25
Adding page rules
After optimizing the speed section of Cloudflare, you will want to create a few page rules. You are allowed to use 3 of
them with a free account, and can purchase extra ones if you need them. I think you’ll be set if you just use the 3
below.
Create a page rule for your login page. In most cases, your admin URL will look like this: yourdomain.com/wp-
admin*.
If you have changed the login page (highly recommended for security reasons), then enter the new URL followed by
an asterisk and no trailing slash.
Then, add the following conditions by choosing the proper dropdowns on the left, and setting the options on the right
as seen below. Once you’re finished, click the Save and Deploy button.
21/25
Now, create another page rule using your homepage URL (with a trailing slash) followed by *preview=true*. Again,
choose the proper dropdowns on the left, and set the correct options on the right. Then click Save and Deploy.
22/25
Create one more page rule for your homepage url followed by a trailing slash and asterisk. Once again, select the
proper dropdowns (only two this time), and set the correct settings on the right. Once you click the Save and
Deploy button, you’re finished setting up Cloudflare’s page rules.
23/25
Purge all caches
Once you’ve completed the setup in Cloudflare, you should purge all caches in W3 Total Cache (see screenshot
below). Just hover over Performance at the top of your dashboard, and click Purge All Caches.
Common Problems
Messed-up site appearance – In some cases, using minify will mess up the formatting of your website. If
something goes awry with the look of your site, simply turn off minify in the general settings tab of W3 Total Cache. If
you followed this guide, you won’t have this problem because we took care of minify in Cloudflare, and kept
it disabled in W3 Total Cache settings.
Dashboard is super slow – Make sure that Object Cache is disabled in the General Settings tab of W3 Total
Cache.
Any time your site is acting up, it’s a good idea to disable all plugins, then reactivate them one-by-one to see which
24/25
one is problematic. Certain plugins conflict with one another, and some plugins do not work well with certain themes.
If you’ve checked all the plugins and they are not causing any problems, it is likely a conflict with your theme. To be
sure of this, you can switch to a default WordPress theme (try Twenty Sixteen) to see if the problem persists. If
everything works fine when you switch to a default theme, then you know that your theme is the problem. At this
point, you can try to get help from the theme developer. He/she may just tell you to use an alternate plugin which is
compatible.
Slower website load times – You may have to wait up to 72 hours for propagation. When I changed my
nameservers to Cloudflare, the propagation was pretty quick, but it can take a while so be patient.
Your Website Crashes – If for some reason your website crashes, you may need to edit your wp-config.php file.
Open it up and delete the following lines:
/** Enable W3 Total Cache */
define(‘WP_CACHE’, true); // Added by W3 Total Cache
Then, you’ll want to open up your .htaccess file and delete all the lines between and including the following:
# BEGIN W3TC
# END W3TC
Next, you’ll need to delete the following files from your wp-content folder:
advanced-cache.php
objectcache.php
db.php
Finally, you should delete the W3-total-cache folder located in wp-content/plugins.
Conclusion
Website speed is critical, and cannot be overlooked. I don’t know about you, but I have zero patience for slow-
loading sites, and find myself leaving them right away… never to return again. Don’t piss off your visitors, and make
sure your website loads quickly.
Follow and implement the tactics in this guide to boost your WordPress website speed. This post is modeled after
one written by Tom Dupuis of Online Media Masters, who creates a variety of super helpful WordPress guides.
Can you think of any more helpful speed optimizations that I may have missed? Leave a comment and let me know.
Do you need help creating a WordPress website? Sign up for your FREE WordPress Setup today.
If you found this post helpful, please share it and spread the word!
Want more like this? Sign up for my newsletter to receive helpful WordPress Tutorials, Tips and Tricks.
25/25

More Related Content

What's hot

Stress Test Drupal on Amazon EC2 vs. RackSpace cloud
Stress Test Drupal on Amazon EC2 vs. RackSpace cloudStress Test Drupal on Amazon EC2 vs. RackSpace cloud
Stress Test Drupal on Amazon EC2 vs. RackSpace cloudAndy Kucharski
 
Building faster websites: web performance with WordPress
Building faster websites: web performance with WordPressBuilding faster websites: web performance with WordPress
Building faster websites: web performance with WordPressJohannes Siipola
 
The Power of a Video Library - WordCamp Raleigh
The  Power of a Video Library - WordCamp RaleighThe  Power of a Video Library - WordCamp Raleigh
The Power of a Video Library - WordCamp RaleighLauren Jeffcoat
 
Magento Performance Improvements with Client Side Optimizations
Magento Performance Improvements with Client Side OptimizationsMagento Performance Improvements with Client Side Optimizations
Magento Performance Improvements with Client Side OptimizationsPINT Inc
 
How to Clear WordPress Cache?
How to Clear WordPress Cache?How to Clear WordPress Cache?
How to Clear WordPress Cache?HTS Hosting
 
WPblog's Ultimate WordPress Guide to Boost Your Website Performance
WPblog's Ultimate WordPress Guide to Boost Your Website Performance WPblog's Ultimate WordPress Guide to Boost Your Website Performance
WPblog's Ultimate WordPress Guide to Boost Your Website Performance Jessica Ervin
 
Make Drupal Run Fast - increase page load speed
Make Drupal Run Fast - increase page load speedMake Drupal Run Fast - increase page load speed
Make Drupal Run Fast - increase page load speedPromet Source
 
I Can Haz More Performanz?
I Can Haz More Performanz?I Can Haz More Performanz?
I Can Haz More Performanz?Andy Melichar
 
WordCamp Belfast DevOps for Beginners
WordCamp Belfast DevOps for BeginnersWordCamp Belfast DevOps for Beginners
WordCamp Belfast DevOps for BeginnersStewart Ritchie
 
Increase Your WordPress Website's Google PageSpeed Score
Increase Your WordPress Website's Google PageSpeed ScoreIncrease Your WordPress Website's Google PageSpeed Score
Increase Your WordPress Website's Google PageSpeed ScoreBrainspire Solutions
 
Performace optimization (increase website speed)
Performace optimization (increase website speed)Performace optimization (increase website speed)
Performace optimization (increase website speed)clickramanm
 
How to investigate and recover from a security breach in WordPress
How to investigate and recover from a security breach in WordPressHow to investigate and recover from a security breach in WordPress
How to investigate and recover from a security breach in WordPressOtto Kekäläinen
 
Cache is keeping you from reaching the full potential as a developer (word ca...
Cache is keeping you from reaching the full potential as a developer (word ca...Cache is keeping you from reaching the full potential as a developer (word ca...
Cache is keeping you from reaching the full potential as a developer (word ca...Thomas Audunhus
 
Website speed optimization guide for technically advanced webmasters
Website speed optimization guide for technically advanced webmastersWebsite speed optimization guide for technically advanced webmasters
Website speed optimization guide for technically advanced webmastersAditya Singh
 
Measuring Web Performance
Measuring Web Performance Measuring Web Performance
Measuring Web Performance Dave Olsen
 
Front-End Web Performance Optimization by BucketSoft
Front-End Web Performance Optimization by BucketSoftFront-End Web Performance Optimization by BucketSoft
Front-End Web Performance Optimization by BucketSoftSteve Wortham
 
Orlando DNN Usergroup Pres 12/06/11
Orlando DNN Usergroup Pres 12/06/11Orlando DNN Usergroup Pres 12/06/11
Orlando DNN Usergroup Pres 12/06/11Jess Coburn
 
Optimizing Your WordPress Site: Why speed matters, and how to get there
Optimizing Your WordPress Site: Why speed matters, and how to get thereOptimizing Your WordPress Site: Why speed matters, and how to get there
Optimizing Your WordPress Site: Why speed matters, and how to get thereStephen Bell
 

What's hot (20)

Stress Test Drupal on Amazon EC2 vs. RackSpace cloud
Stress Test Drupal on Amazon EC2 vs. RackSpace cloudStress Test Drupal on Amazon EC2 vs. RackSpace cloud
Stress Test Drupal on Amazon EC2 vs. RackSpace cloud
 
Building faster websites: web performance with WordPress
Building faster websites: web performance with WordPressBuilding faster websites: web performance with WordPress
Building faster websites: web performance with WordPress
 
The Power of a Video Library - WordCamp Raleigh
The  Power of a Video Library - WordCamp RaleighThe  Power of a Video Library - WordCamp Raleigh
The Power of a Video Library - WordCamp Raleigh
 
Magento Performance Improvements with Client Side Optimizations
Magento Performance Improvements with Client Side OptimizationsMagento Performance Improvements with Client Side Optimizations
Magento Performance Improvements with Client Side Optimizations
 
How to Clear WordPress Cache?
How to Clear WordPress Cache?How to Clear WordPress Cache?
How to Clear WordPress Cache?
 
WPblog's Ultimate WordPress Guide to Boost Your Website Performance
WPblog's Ultimate WordPress Guide to Boost Your Website Performance WPblog's Ultimate WordPress Guide to Boost Your Website Performance
WPblog's Ultimate WordPress Guide to Boost Your Website Performance
 
Make Drupal Run Fast - increase page load speed
Make Drupal Run Fast - increase page load speedMake Drupal Run Fast - increase page load speed
Make Drupal Run Fast - increase page load speed
 
I Can Haz More Performanz?
I Can Haz More Performanz?I Can Haz More Performanz?
I Can Haz More Performanz?
 
Optimizing wp
Optimizing wpOptimizing wp
Optimizing wp
 
WordCamp Belfast DevOps for Beginners
WordCamp Belfast DevOps for BeginnersWordCamp Belfast DevOps for Beginners
WordCamp Belfast DevOps for Beginners
 
Increase Your WordPress Website's Google PageSpeed Score
Increase Your WordPress Website's Google PageSpeed ScoreIncrease Your WordPress Website's Google PageSpeed Score
Increase Your WordPress Website's Google PageSpeed Score
 
Magento Optimization Whitepaper
Magento Optimization WhitepaperMagento Optimization Whitepaper
Magento Optimization Whitepaper
 
Performace optimization (increase website speed)
Performace optimization (increase website speed)Performace optimization (increase website speed)
Performace optimization (increase website speed)
 
How to investigate and recover from a security breach in WordPress
How to investigate and recover from a security breach in WordPressHow to investigate and recover from a security breach in WordPress
How to investigate and recover from a security breach in WordPress
 
Cache is keeping you from reaching the full potential as a developer (word ca...
Cache is keeping you from reaching the full potential as a developer (word ca...Cache is keeping you from reaching the full potential as a developer (word ca...
Cache is keeping you from reaching the full potential as a developer (word ca...
 
Website speed optimization guide for technically advanced webmasters
Website speed optimization guide for technically advanced webmastersWebsite speed optimization guide for technically advanced webmasters
Website speed optimization guide for technically advanced webmasters
 
Measuring Web Performance
Measuring Web Performance Measuring Web Performance
Measuring Web Performance
 
Front-End Web Performance Optimization by BucketSoft
Front-End Web Performance Optimization by BucketSoftFront-End Web Performance Optimization by BucketSoft
Front-End Web Performance Optimization by BucketSoft
 
Orlando DNN Usergroup Pres 12/06/11
Orlando DNN Usergroup Pres 12/06/11Orlando DNN Usergroup Pres 12/06/11
Orlando DNN Usergroup Pres 12/06/11
 
Optimizing Your WordPress Site: Why speed matters, and how to get there
Optimizing Your WordPress Site: Why speed matters, and how to get thereOptimizing Your WordPress Site: Why speed matters, and how to get there
Optimizing Your WordPress Site: Why speed matters, and how to get there
 

Similar to Make WordPress Faster with W3 Total Cache & Cloudflare

15 ways to improve your word press website performance in 30 minutes
15 ways to improve your word press website performance in 30 minutes 15 ways to improve your word press website performance in 30 minutes
15 ways to improve your word press website performance in 30 minutes World Web Technology Pvt Ltd
 
Introduction to Optimizing WordPress for Website Speed
Introduction to Optimizing WordPress for Website SpeedIntroduction to Optimizing WordPress for Website Speed
Introduction to Optimizing WordPress for Website SpeedNile Flores
 
Csaba Kissi - SEO Tactics 2022
Csaba Kissi - SEO Tactics 2022Csaba Kissi - SEO Tactics 2022
Csaba Kissi - SEO Tactics 2022Mubarok wei
 
How to set up a WordPress website step by-step tutorial
How to set up a WordPress website step by-step tutorialHow to set up a WordPress website step by-step tutorial
How to set up a WordPress website step by-step tutorialMarshall Reyher
 
Word press multisite network how to install & setup it
Word press multisite network how to install & setup itWord press multisite network how to install & setup it
Word press multisite network how to install & setup itTemok IT Services
 
WordPress Website Down.pdf
WordPress Website Down.pdfWordPress Website Down.pdf
WordPress Website Down.pdfHost It Smart
 
7. mastering wordpress
7. mastering wordpress7. mastering wordpress
7. mastering wordpressMoreNiche
 
Drupal 6 Performance Tips
Drupal 6 Performance TipsDrupal 6 Performance Tips
Drupal 6 Performance TipsTrevor James
 
8 Ways to Backup and Restore Your WordPress Website
8 Ways to Backup and Restore Your WordPress Website8 Ways to Backup and Restore Your WordPress Website
8 Ways to Backup and Restore Your WordPress WebsiteWPWhiteBoard
 
Editing Wordpress in Dreamweaver
Editing Wordpress in DreamweaverEditing Wordpress in Dreamweaver
Editing Wordpress in DreamweaverGarin Kilpatrick
 
Introduction to Optimizing WordPress for Website Speed
Introduction to Optimizing WordPress for Website SpeedIntroduction to Optimizing WordPress for Website Speed
Introduction to Optimizing WordPress for Website SpeedNile Flores
 
GoDaddy Guide to cPanel and WordPress
GoDaddy Guide to cPanel and WordPressGoDaddy Guide to cPanel and WordPress
GoDaddy Guide to cPanel and WordPressGoDaddy
 
Wordpress Optimization Settings
Wordpress Optimization Settings Wordpress Optimization Settings
Wordpress Optimization Settings webhostingguy
 

Similar to Make WordPress Faster with W3 Total Cache & Cloudflare (20)

15 ways to improve your word press website performance in 30 minutes
15 ways to improve your word press website performance in 30 minutes 15 ways to improve your word press website performance in 30 minutes
15 ways to improve your word press website performance in 30 minutes
 
Introduction to Optimizing WordPress for Website Speed
Introduction to Optimizing WordPress for Website SpeedIntroduction to Optimizing WordPress for Website Speed
Introduction to Optimizing WordPress for Website Speed
 
Csaba Kissi - SEO Tactics 2022
Csaba Kissi - SEO Tactics 2022Csaba Kissi - SEO Tactics 2022
Csaba Kissi - SEO Tactics 2022
 
How to set up a WordPress website step by-step tutorial
How to set up a WordPress website step by-step tutorialHow to set up a WordPress website step by-step tutorial
How to set up a WordPress website step by-step tutorial
 
Word press multisite network how to install & setup it
Word press multisite network how to install & setup itWord press multisite network how to install & setup it
Word press multisite network how to install & setup it
 
WordPress Website Down.pdf
WordPress Website Down.pdfWordPress Website Down.pdf
WordPress Website Down.pdf
 
7. mastering wordpress
7. mastering wordpress7. mastering wordpress
7. mastering wordpress
 
Drupal 6 Performance Tips
Drupal 6 Performance TipsDrupal 6 Performance Tips
Drupal 6 Performance Tips
 
WordPress optimization
WordPress optimizationWordPress optimization
WordPress optimization
 
8 Ways to Backup and Restore Your WordPress Website
8 Ways to Backup and Restore Your WordPress Website8 Ways to Backup and Restore Your WordPress Website
8 Ways to Backup and Restore Your WordPress Website
 
Killer word press-checklist
Killer word press-checklistKiller word press-checklist
Killer word press-checklist
 
Editing Wordpress in Dreamweaver
Editing Wordpress in DreamweaverEditing Wordpress in Dreamweaver
Editing Wordpress in Dreamweaver
 
937079
937079937079
937079
 
Bluehost wordpresinstall
Bluehost wordpresinstallBluehost wordpresinstall
Bluehost wordpresinstall
 
WordPress in 90 minutes
WordPress in 90 minutesWordPress in 90 minutes
WordPress in 90 minutes
 
Introduction to Optimizing WordPress for Website Speed
Introduction to Optimizing WordPress for Website SpeedIntroduction to Optimizing WordPress for Website Speed
Introduction to Optimizing WordPress for Website Speed
 
Show Me The Cache!
Show Me The Cache!Show Me The Cache!
Show Me The Cache!
 
GoDaddy Guide to cPanel and WordPress
GoDaddy Guide to cPanel and WordPressGoDaddy Guide to cPanel and WordPress
GoDaddy Guide to cPanel and WordPress
 
Word press in 30 minutes
Word press in 30 minutesWord press in 30 minutes
Word press in 30 minutes
 
Wordpress Optimization Settings
Wordpress Optimization Settings Wordpress Optimization Settings
Wordpress Optimization Settings
 

Recently uploaded

Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsPrecisely
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 

Recently uploaded (20)

Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Unlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power SystemsUnlocking the Potential of the Cloud for IBM Power Systems
Unlocking the Potential of the Cloud for IBM Power Systems
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 

Make WordPress Faster with W3 Total Cache & Cloudflare

  • 1. Improve WordPress Site Speed with W3 Total Cache + Cloudflare mprstudio.com/speed-up-wordpress-w3-total-cache-cloudflare/ Is your website painfully slow? Does it take forever to load? If you answered yes to those questions, you have a problem on your hands. It’s important to mention that there are a number of things that can greatly affect your website speed, including the following: Your hosting – some hosting providers are terrible (GoDaddy comes to mind), and should be avoided at all costs. If you have a crappy hosting plan, your site will be slow, period. If you see “reduce server response time” in your Google Page Speed Insights, then your hosting is slow and you should find a better web host. The quality of coding in your theme – multi-purpose themes are super bloated and full of features that most people never even use. Instead of choosing a multi-purpose theme, try to select one that will fit your site’s needs, but is not overkill. The amount of WordPress plugins you use on your site. As a general rule, you want to keep the amount of plugins you use to a minimum. The speed at which your website loads is extremely important, and cannot be overlooked. Honestly, it makes a terrible first impression on those unfortunate people who happen to stumble onto your site. The bottom line is that visitors simply will not wait for your site to load. Instead, they will look for what they need somewhere else, praying that the next site loads faster than yours. There are a couple things you can do to speed up your WordPress website, and they won’t cost you a dime. In this post, you will learn how to configure the W3 Total Cache plugin to use it in conjunction with the free version of Cloudflare CDN (Content Delivery Network). In addition to speeding up your website, it will make it more secure as well. 1/25
  • 2. Table of Contents Configuring W3 Total Cache 1. General Settings 2. Page Cache 3. Minify 4. Database Cache 5. Object Cache 6. Browser Cache 7. Extensions 8. Cloudflare Configuring Cloudflare Changing DNS records Speed settings Adding page rules Purge all caches Common Problems What is W3 Total Cache? A caching plugin is a must-have for your WordPress website, and should be one of the first plugins you install. WordPress is a database-driven content management system (CMS) which relies on queries to and from a MySQL database to fetch and render both pages and posts. W3 Total Cache is a plugin that improves the user experience of your site by caching every aspect of your website, resulting in improved user experience and enhanced server performance. W3 Total Cache reduces website download times by creating static copies of your pages and posts, which makes them load more quickly. Take the performance of your site even further by using W3 Total Cache in conjunction with the free version of Cloudflare CDN. See all free and paid Cloudflare plans to make sure the free version will work with your site. Save yourself some time and download my recommended W3 Total Cache settings instead of going through the guide below. To upload them, go to Performance > General Settings, then click on the Import/Export Settings button. You will have to adjust a couple things to reflect your site, but it will still save you a good amount of time. Make sure you enter your URL in the settings under Performance > Extensions > Cloudflare. You do not need a DropBox account to download the file, just click on the link and the download will start. Configuring W3 Total Cache 2/25
  • 3. The W3 Total Cache settings are quite extensive, and it is difficult to know which settings are best for optimal performance. I will walk you through all the different settings with the help of images. 1. General Settings 3/25
  • 10. 10/25
  • 11. 11/25
  • 12. 3. Minify If you’re going to use Cloudflare, Minify should be disabled in General Settings – it will be handled by Cloudflare instead. If you’re NOT going to use Cloudflare, then the default settings are recommended. 4. Database Cache It is recommended that you use the default settings. 5. Object Cache The default settings should be used here as well. 6. Browser Cache 7. Extensions 12/25
  • 13. In the Extensions tab, activate Cloudflare, as well as any other extensions you are using. I currently have both Cloudflare and Yoast SEO activated, but everything else is turned off. Your situation may be different, and you may have more extensions enabled. After you activate Cloudflare, click on Settings and configure the extension as seen below. 8. Cloudflare 13/25
  • 14. 14/25
  • 15. 15/25
  • 16. 16/25
  • 17. Enable hotlink protection to prevent crappy websites from using your images on their site, while you’re still hosting them. They do this by posting an image link on their site which refers to the image hosted on your website. It eats up your hosting bandwidth, and can put a huge strain on your hosting server. It’s a good idea to regularly monitor the links to your site using Google Search Console. After you have configured the Cloudflare extension settings in W3 Total Cache, you will need to create a Cloudflare account. What is Cloudflare? Cloudflare is a company that provides a variety of helpful features, including a Content Delivery Network, performance and security optimization, as well as website analytics. By using it in conjunction with W3 Total Cache, you can drastically improve both the speed and security of your WordPress website. You can get started with the free version Cloudflare in just a few minutes. Simply follow this step-by-step guide and you’ll have it up and running in no time. Configuring Cloudflare To register, simply enter your email address and desired password, then click Sign Up. You will then need to check your email to confirm your account. After you let them know that you’re not a robot, you can proceed with the setup. After you login to your account, click the + Add Site link in the upper right hand corner. Enter your website url in the box, then click the Begin Scan button. 17/25
  • 18. Next, you will click Continue Setup. Then, scroll all the way down and click on Continue. Select ‘Free Website’, then continue. 18/25
  • 19. Changing DNS records At this point, Cloudflare will provide you with two nameservers to use. You will have to change the DNS records at your registrar. In most cases your registrar will be the same as your hosting provider, but not always (e.g. I purchased my domain name for http://reyherphoto through GoDaddy, but host the site on InMotion Hosting). In order to change your nameservers, do a search on Google for “change DNS + name of your registrar.” You will simply replace the old nameservers with the new Cloudflare ones using the custom nameservers option. Now, you can head back over to Cloudflare and click on I’ve added all missing records, continue. Speed settings 19/25
  • 20. At this point, you will configure Cloudflare for optimal performance. 20/25
  • 21. Adding page rules After optimizing the speed section of Cloudflare, you will want to create a few page rules. You are allowed to use 3 of them with a free account, and can purchase extra ones if you need them. I think you’ll be set if you just use the 3 below. Create a page rule for your login page. In most cases, your admin URL will look like this: yourdomain.com/wp- admin*. If you have changed the login page (highly recommended for security reasons), then enter the new URL followed by an asterisk and no trailing slash. Then, add the following conditions by choosing the proper dropdowns on the left, and setting the options on the right as seen below. Once you’re finished, click the Save and Deploy button. 21/25
  • 22. Now, create another page rule using your homepage URL (with a trailing slash) followed by *preview=true*. Again, choose the proper dropdowns on the left, and set the correct options on the right. Then click Save and Deploy. 22/25
  • 23. Create one more page rule for your homepage url followed by a trailing slash and asterisk. Once again, select the proper dropdowns (only two this time), and set the correct settings on the right. Once you click the Save and Deploy button, you’re finished setting up Cloudflare’s page rules. 23/25
  • 24. Purge all caches Once you’ve completed the setup in Cloudflare, you should purge all caches in W3 Total Cache (see screenshot below). Just hover over Performance at the top of your dashboard, and click Purge All Caches. Common Problems Messed-up site appearance – In some cases, using minify will mess up the formatting of your website. If something goes awry with the look of your site, simply turn off minify in the general settings tab of W3 Total Cache. If you followed this guide, you won’t have this problem because we took care of minify in Cloudflare, and kept it disabled in W3 Total Cache settings. Dashboard is super slow – Make sure that Object Cache is disabled in the General Settings tab of W3 Total Cache. Any time your site is acting up, it’s a good idea to disable all plugins, then reactivate them one-by-one to see which 24/25
  • 25. one is problematic. Certain plugins conflict with one another, and some plugins do not work well with certain themes. If you’ve checked all the plugins and they are not causing any problems, it is likely a conflict with your theme. To be sure of this, you can switch to a default WordPress theme (try Twenty Sixteen) to see if the problem persists. If everything works fine when you switch to a default theme, then you know that your theme is the problem. At this point, you can try to get help from the theme developer. He/she may just tell you to use an alternate plugin which is compatible. Slower website load times – You may have to wait up to 72 hours for propagation. When I changed my nameservers to Cloudflare, the propagation was pretty quick, but it can take a while so be patient. Your Website Crashes – If for some reason your website crashes, you may need to edit your wp-config.php file. Open it up and delete the following lines: /** Enable W3 Total Cache */ define(‘WP_CACHE’, true); // Added by W3 Total Cache Then, you’ll want to open up your .htaccess file and delete all the lines between and including the following: # BEGIN W3TC # END W3TC Next, you’ll need to delete the following files from your wp-content folder: advanced-cache.php objectcache.php db.php Finally, you should delete the W3-total-cache folder located in wp-content/plugins. Conclusion Website speed is critical, and cannot be overlooked. I don’t know about you, but I have zero patience for slow- loading sites, and find myself leaving them right away… never to return again. Don’t piss off your visitors, and make sure your website loads quickly. Follow and implement the tactics in this guide to boost your WordPress website speed. This post is modeled after one written by Tom Dupuis of Online Media Masters, who creates a variety of super helpful WordPress guides. Can you think of any more helpful speed optimizations that I may have missed? Leave a comment and let me know. Do you need help creating a WordPress website? Sign up for your FREE WordPress Setup today. If you found this post helpful, please share it and spread the word! Want more like this? Sign up for my newsletter to receive helpful WordPress Tutorials, Tips and Tricks. 25/25