• Categories
    • Tutorials
    • Beginners Guide
    • WordPress News
    • WordPress Security
    • Best WordPress Plugins
    • WordPress Themes
    • Product Reviews
    • WP Tips & Tricks
  • Guides
    • Start a Blog
    • Make a Website
    • WordPress Hosting
  • Themes
    • Elegant Themes
    • Thrive Themes
    • OptimizePress
  • Hosting Reviews
    • WPEngine
    • Flywheel
    • A2 Hosting
    • SiteGround
    • Kinsta
  • Coupons
    • WPEngine
    • Flywheel
    • HostGator
    • A2 Hosting
WordPress Tutorials

How to Install and Setup WP Rocket and MaxCDN in WordPress

Last Updated on: January 21, 2020 Dev Sharma 30 Comments

How to Install and Setup WP Rocket and MaxCDN in WordPress

If you have been blogging for a while, then you probably know how important it is to have a fast loading website. Small time delays can have a big impact on user-experience and seemingly small impact on the site rankings.

People don’t like to wait, and will click away after just a few seconds. So if you want to create a successful website, you really need to focus on improving the performance of your website. Increasing the website’s speed is not an easy job, there are a lot of things you can do to optimize your WordPress website, however the most effective way is to install a cache plugin. There are many cache plugins available (mostly free), in the WordPress.org repository.

For WPKube, I am not using any cache plugin as this site is hosted on WPEngine (our review). But for other WordPress sites that are hosted on shared hosting environment, I am using a paid cache plugin called WP Rocket along with a CDN service – MaxCDN.

In this post, I will show you how to install and setup WP Rocket plugin to get maximum results. Before we get started, I suggest that you check your website performance with – GTMetrix or Pingdom tools.

Here’s the screenshot of my test site (without WP-Rocket).

wpdeck site performance without wp-rocket plugin

WP Rocket Review

WP Rocket is a premium caching plugin, created by Jean-Baptiste Marchand-Arvier, Julio Potier, and Jonathan Buttigieg. The plugin has been in the market for a little over a year now, but made its international debut in May of this year. This is the first commercial plugin in the market, which is currently dominated by free plugins.

Price starts at $39 for one website and goes up to $199 for unlimited websites, with a year of support and updates.

The plugin offers page caching, cache preloading, minification, GZIP compression, DNS Prefectching, Multisite compatibility, and CDN support. It also comes with LazyLoad option, which ensures that images are only downloaded once the image is visible in browser.

With WP Rocket, you can also export all your plugin settings to another website using the plugin’s import and export tool.

Installing and Configuring WP Rocket

WP Rocket is a very powerful plugin, but unlike other caching plugins it is not packed with a ton of options. In fact, this plugin is exactly opposite to W3 Total Cache. There are only a handful of options that you will need to configure to make it work for your site. If you are a beginner, and installing WP Rocket plugin for the first time, then please follow the steps carefully.

Before you install the plugin, you need to make sure that you uninstall all other caching plugins, for example W3 Total Cache or WP Super Cache. This needs to be done before installing WP Rocket plugin, so you don’t run into any issues upon activation.

Download and Install the plugin

Since WP Rocket is a premium plugin, the first thing you will need to do is to download a copy of the plugin from their site. Once you have downloaded the plugin files, you can install it directly from the WordPress dashboard. Under the plugins option of your dashboard, click the “Add new” button and then the “Upload plugin” button.

wprocket installation guide

Go ahead, upload the plugin, and click the “Install Now” button.

Activate the plugin

After activating the plugin, you’ll get a new navigation option under the settings menu: “WP Rocket”. Unlike other premium plugins, this one doesn’t require any authentication or activation key, so you will get a very user friendly experience.

The options are very basic compared to other cashing solutions and you can easily go by without modifying any settings, however it only takes a minute to configure the plugin.

Basic Options

wp rocket basic options

You will find the Basic Options page, by clicking on the “WP Rocket” menu under settings tab in you WordPress admin panel. This is page where you will configure basic options such as Lazy Load and Minification. I am going to explain every single feature below.

  • Lazy Load – This will will ensure that your images are only loaded as they are about to become visible in a user’s browser. This feature is also available in a standalone plugin – Rocket Lazy Load. You should enable this feature, but make sure to uninstall any other lazy load plugin you may already have on your site.
  • Minification – Minifying the CSS and Javascript files can have a significant impact on your site. It reduces the size of your static files by removing any spaces and comments it has. However, it can sometimes break theme code. You may have to adjust the settings for your theme or exclude those files from minification.
  • Mobile Cache – You may already have the responsive design, but enabling Mobile Cache will ensure that your site loads as fast as it loads on your desktop (or Mac). Only enable this, if your sites get a good amount of mobile traffic – You can check that from your Analytics account.
  • Logged in user cache – Normally, cache plugins doesn’t work when a user is logged in. It lets you enable caching for logged in users. This feature can be very useful if you run a multi-authors site or any other type of site that require users to sign-in.
  • SSL – Lets you enable caching for pages with SSL protocol (http://).
  • Clear Cache Lifespan – Define the time in which cached files are automatically cleared and renewed. By default, it is set to 24 hours.

Next, we have advanced options.

Advanced options

Normally, I would want to skip the advanced settings because the basic options are sufficient enough. But in this case, it is essential that you go through the Advanced settings page.

  • Prefetch DNS Requests – Every time a user visits a website, it loads external scripts such as Google Fonts and Facebook Widgets. These scripts takes fractions to load properly in the browser. The problem here, really, is the DNS lookups involved with third party domains. Fortunately, there’s a quick fix to speed up this process – DNS Prefecting. If you need to request assets from say ajax.googleapis.com, then you can prefetch that hostname’s DNS by simply adding the domain in the Prefetch DNS Requests section. Make sure to only add assets that will be looked up on every page of your site.
  • Exclude JS and CSS files – This is where you add the CSS and JS files that you want to exclude from caching. And if you are running WooCommerce and Easy Digital Downloads you should exclude the basket and checkout pages from caching.
  • Deferred loading – You can add JavaScript files that will be loaded asynchronously at the same time as the page loads.

You can skip the advanced options tab, if you haven’t enabled the Minification and doesn’t want to use DNS prefetching.

CDN

WP Rocket supports all the Pull CDN providers including MaxCDN (which is what we’re using here on WPKube). Here’s the complete list of top CDN services. You should check out yourself, which one suits you well.

This section will only apply to sites that are using CDN. If you think you will be using a CDN service, then I recommend MaxCDN (use coupon “wpkube25” for 25% off).

Step 1: Create a Pull Zone in your MaxCDN dashboard. Login to your MaxCDN account, click on Zones menu in the top navigation, and then click the Create Pull Zone button.

 maxcdn custom domain

Step 2: Next, you need to fill the details for your pull zone.

  • Pull Zone Name – Simply give it a name, so you can identifiy it in your MaxCDN panel.
  • Origin server URL – Enter your website url (including http://).
  • Label – Description for the pull zone.

This is how it should look when you fill the details:

maxcdn pull zone details

Once you have entered the data, click the Create button. It may take up to 3 minutes for the process to complete.

Step 3: Next step is to create a custom zone for your site. You can do this by going in to your MaxCDN dashboard. Click on the Manage button at the bottom of the dashboard, next to your pull zone that you just created. Next, click on the settings tab. Now, add a subdomain (like cdn.yourdomain.com) and click the Add button.

maxcdn domain settings

Step 4: The next step is setting up the CNAME alias in your DNS Zone file for your domain. You can easily ignore this step and use temporary domain, but it is highly suggested that you follow this step to create a better url structure.

If you ignore this step, your url will look like this – http://wpdeck.wpkubecom.netdna-cdn.com/wp-content/uploads/2013/11/clipper-theme.jpg.

To add the cName, login to your hosting account and click on Simple DNS Zone Editor under Domains section. Most WordPress hosting providers such as BlueHost, SiteGround, etc provide a cPanel account, where you can manage different settings of your hosting account.

maxcdn dns

On the next screen, you have to add a CNAME record with a direct link to your temporary CDN URL.

dns settings

Now you will need to wait for a few minutes for your CNAME record to propagate. You can use this site – http://www.whatsmydns.net/#CNAME/ to check on your DNS Propagation.

Step 5: Once the propagation is completed, add your CDN URL into your WP Rocket Cache settings (Dashboard » Settings » WP Rocket » Cache).

See the screenshot below:

cdn final step

Click the Save Changes button and that’s all. You have successfully configured the MaxCDN in WordPress with WP Rocket.

Even by enabling just a few of the features of WP Rocket plugin, you should be able to speed up load times of your site. However, the plugin comes with many other options that I haven’t covered above. So I will try my best to explain them.

Tools

The tools page allows you to participate in beta program, get earlier access to new versions, clear page, and pre-load cache. You also get a clear cache button on individual posts and pages, next to publish button.

You can also import and export the settings of WP Rocket plugin from tools page.

tools, faq, videos, support

A Frequently asked questions, video tutorials, and support page are also integrated into the plugin options page.

Final Thoughts

WP Rocket is easily becoming the most user friendly caching solutions for WordPress users.

I have been a long time user of W3 Total Cache (see our tutorial) and finally ditched it for WP Rocket. It has only been a few weeks but so far I am happy with the plugin.

Unlike other caching solutions, it doesn’t have hundreds of settings. The plugin is priced at $39 and comes with a 30-day money back guarantee if you are not happy with the results.

I hope that you found this article helpful. If you are still not sure and looking for alternatives, see our roundup on best caching plugins for WordPress. If you’re looking for a free alternative, see our article on Cache Enabler Review: The Best Free Caching Solution for WordPress.

Don’t forget to our MaxCDN coupon code “wpkube25” for 25% off.

If you have any questions, then please let me know in the comments below.

+ Share
Disclosure

Dev Sharma

Devesh is the founder of WPKube. He has been building and managing WordPress websites for 8+ years and has been featured in Forbes, HuffPo, Entrepreneur, and more! Follow him on Twitter.

Related Posts

Back to all articles
  • Implementing a GraphQL server with components in PHP

    Implementing a GraphQL server with components in PHP

  • How to Start a WordPress Blog (Step by Step Guide)

  • How to add HTTPS and SSL to WordPress – Step by Step Guide!

Coupons

View more deals
  • Nexcess coupon code
    Save 40%

    Nexcess Coupon

    Looking to save money on managed hosting from Nexcess?
    Get This Deal
  • 33% OFF

    Flywheel Hosting Coupon

    Hosting isn’t always the most simple portion of your websit
    Get This Deal
  • TailorBrands
    25% Off

    Tailor Brands Coupon

    Looking for a Tailor Brands coupon to save on your own custom log
    Get This Deal
30 Comments Leave a Reply
  1. Samantha Angell says

    September 24, 2014 at 7:42 pm

    I have not yet switched over to WordPress, although I know I should at some point. Thanks for the good information!

    Reply
  2. Robin (Masshole Mommy) says

    September 24, 2014 at 7:45 pm

    I am not good with this sort of thing at all. That is why I paid someone to do my site for me.

    Reply
  3. Thach Pham says

    September 24, 2014 at 8:02 pm

    How is WPRocket compatible with NGINX Webserver?

    Reply
    • Jean-Baptiste says

      October 6, 2014 at 4:34 pm

      Yes,
      It’s fully compatible with Nginx.

      Reply
  4. Liz Mays says

    September 24, 2014 at 8:50 pm

    It’s a little beyond my tech skills, but I’ll pass this on to the gal who does mine. It might be helpful for her. Thanks!

    Reply
  5. Kathy says

    September 25, 2014 at 12:49 am

    This is a very good tutorial. Thank you for putting in all the details.

    Reply
  6. Franc Ramon says

    September 25, 2014 at 12:59 am

    WP Rocket can really speed up your site. I’ll check this out for my blog.

    Reply
  7. Lori Felix says

    September 25, 2014 at 1:21 am

    I was just emailing my IT person about site speed today. I am going to ask him to install WP rocket., thanks!

    Reply
  8. Bonnie @ wemake7 says

    September 25, 2014 at 1:24 am

    Thank you for the great information. It is very helpful and useful.

    Reply
  9. FamiGami says

    September 25, 2014 at 1:42 am

    Thanks for these great tips. I’ll look into these a little more since I need a good cache solution for my site.

    Reply
  10. Aisha Kristine Chong says

    September 25, 2014 at 5:48 am

    Seems interesting – I have to check this out for my blog.

    Reply
    • Aran Tibaldossss (Search me facebook says

      November 2, 2016 at 7:12 pm

      is this u?
      https://www.facebook.com/cbkristine/

      Reply
  11. R U S S says

    September 25, 2014 at 10:50 am

    I’m in Blogspot, but this sure is informative. Maybe one day I’ll switch to WordPress.

    Reply
  12. Geanine says

    September 25, 2014 at 11:40 am

    Thanks for the info! I had no idea my site was so slow, now to find someone to install this for me

    Reply
  13. Rosey says

    September 25, 2014 at 11:52 am

    I know people love WordPress. It seems like there really is so much that it does (and so much to learn for the blogger too). I bet I’d like it.

    Reply
  14. Marc says

    September 25, 2014 at 11:57 am

    I’ve always hated dealing with caching plugins because I’ve had some frustrating experiences with getting them set up in the past. I’m not familiar with WP Rocket but it seems like a great option. Thanks for featuring it.

    Reply
  15. Ellie Swinton says

    September 25, 2014 at 1:55 pm

    I use Blogger but if I ever make the switch over to WordPress I must remember to check back here for advice

    Reply
  16. Ann Bacciaglia says

    September 25, 2014 at 5:44 pm

    Thanks for the coupon code. This is a great post. This will be so handy to anyone setting up.

    Reply
  17. HilLesha says

    September 25, 2014 at 6:51 pm

    My blog has been slower than usual, so I could use a better plugin such as the WP Rocket.

    Reply
  18. Rebecca Swenor says

    September 25, 2014 at 9:41 pm

    This is great information for though who use WordPress. It would be great for some bloggers indeed. Thanks for sharing.

    Reply
  19. www.coffeeandcrackers.com says

    September 26, 2014 at 2:03 pm

    Well, I learned something new today.. Though I am not a wordpress user, but I know this will be helpful to those who does..

    Reply
  20. Margarita Ibbott (@DownshiftingPRO) says

    September 26, 2014 at 2:31 pm

    I am on Blogger… all these plugins make me nervous. All I ever seem to read is blogger complaining about plug ins crashing their site.

    Reply
  21. Tim Bonner says

    October 4, 2014 at 8:07 pm

    WP Rocket sounds like a great alternative to the usual free caching plugins Dev.

    I use W3 Total Cache Pro which comes as standard with my Synthesis hosting account but I’d be tempted to use this as an alternative on sites I have on shared hosting.

    Reply
  22. Kingsley says

    November 1, 2014 at 9:48 am

    The plugin seems good, seems it doesn’t work with Amazon Cloudfront CDN

    Reply
  23. Robert Dahlström says

    March 29, 2016 at 2:23 pm

    I installed it, clicked activate and boom my site is gone. just blank page, cant even acces /admin log in screen .

    Thanks for that

    Reply
    • Devesh Sharma says

      March 30, 2016 at 1:16 pm

      Could be related to your theme or maybe conflicting with some other plugin. Have you tried contacting their support staff?

      In the meantime, remove the wp-rocket plugin via FTP to fix the issue.

      Reply
  24. Jesus says

    September 12, 2016 at 12:21 pm

    You show the speed before but not after? Jesus =)

    Reply
  25. Isaiah says

    November 11, 2016 at 10:43 pm

    Are you saying that if my site is hosted with WPengine that I wouldn’t need, or rather benefit from WP Rocket installed? Thanks in advance for feedback.

    Reply
    • Dev says

      November 12, 2016 at 4:00 am

      Hey Isaiah,

      Exactly, you won’t need the WP Rocket plugin. And if you try to install, it won’t work with their custom caching environment. Basically, managed hosting company such as WPEngine and FlyWheel, do not allow third-party caching solutions, you can see the full list of disallowed plugins here — https://wpengine.com/support/disallowed-plugins/

      Reply
  26. Ankit says

    October 12, 2017 at 11:40 am

    My website very slow after google cdn enable please suggest google cdn work with wp rocket cache plugin / google cdn work well without cache plugin?

    After google cdn enable also increase server response time 5 to 6 sec

    Google Compute Engine

    Operating System Debian (8)

    Software Apache (2.4.27)

    MySQL (5.7.19), OpenSSL (1.0.2l), PHP (7.0.23), phpMyAdmin (4.7.4), SQLite (3.7.15.1)

    Varnish (4.1.0), WordPress (4.8.2)

    Reply

Leave a Reply Cancel reply

Full Disclosure This post may contain affiliate links, meaning that if you click on one of the links and purchase an item, we may receive a commission (at no additional cost to you). All opinions are our own and we do not accept payments for positive reviews.

Our Newsletter

Get awesome content delivered straight to your inbox.

loader

THE BEST OF WPKUBE

Some of the best content we have published so far.

BEGINNER GUIDES & REVIEWS

1How to Start a WordPress Blog (Step by Step Guide)
2How to Install WordPress - The Complete Guide
36 Best Options for Managed WordPress Hosting Compared
4The 7 Best WordPress Hosting Providers for 2021 Compared
5Top 9 Landing Page Plugins for WordPress (2020)
69 Best List Building Plugins for WordPress In 2021
7How to Fix the 500 Internal Server Error on Your WordPress Website
8Beaver Builder Review: Is it The Best Page Builder Plugin for WordPress (2021)?
9What is a Gravatar and Why You Should Get One
10Thrive Themes Review: A Look At The Full Membership
117 Best WordPress Migration Plugins Reviewed and Compared for 2021
12OptimizePress Review: Create Landing Pages with Ease
13How to Make a Website: Complete Beginner's Guide
14WordPress.com vs WordPress.org: Which is Best for Me?
15Top 22 Best Free Stock Photo Resources For Your Site
1617 of the Best Google Fonts (And How to Use Them in WordPress)
17LifterLMS Review: Is it The Ultimate WordPress LMS Plugin?
18How To Fix '503 Service Unavailable' WordPress Error
1911 Best Contact Form Plugins for WordPress in 2021
20How to Use BackupBuddy – The Best Backup Solution for WP??
21How to Add a Custom Logo to Your WordPress Site
22Kinsta Review: Real Test Data + My Likes And Dislikes
23How to Fix Error Establishing a Database Connection in WordPress
24Thrive Architect Review 2020 – Best Landing Page Plugin for WordPress!

Exclusive deals

Flywheel Elegant Themes Coupon WPEngine Coupon A2 Hosting

WPEngine: 50% OFF Deal

Save 50% on one of the best managed hosting providers.

Get this Deal

Flywheel(our review)

Featured In Forbes Huffpost Entrepreneur SEJ

About WPKube

WPKube is an online WordPress resource which focuses on WordPress tutorials, How-to’s, guides, plugins, news, and more. We aim to provide the most comprehensive beginner’s guides to anything about WordPress — from installing plugins, themes, automated installs and setups, to creating and setting up pages for your website.

We have over 500+ tutorials, guides, product reviews, tips, and tricks about WordPress. Founded by Devesh Sharma, the main goal of this site is to provide useful information on anything and everything WordPress.

Useful Links

  • Behind the Scenes
  • Beginner Guides
  • WordPress Hosting
  • WooCommerce Themes
  • MeridianThemes
  • Exclusive WordPress Deals
View All Guides »

Reviews

  • WPEngine 33% OFF
  • Thrive Leads
  • Flywheel 33% OFF
  • Divi Theme 20% OFF
  • Thrive Architect
  • Elegant Themes
Reviews »

Deals

  • InMotion Hosting
  • LifterLMS Coupon
  • LiquidWeb Coupon
  • WPEngine Coupon
  • A2 Hosting
More Deals »
© Copyright 2020 WPKube ® All Rights Reserved.
  • About
  • Contact
  • Site Terms
  • Disclosure
  • Privacy Policy