WordPress Performance: Cloudflare vs. WP Rocket

[ad_1]

I'm rethinking how our websites perform on Google PageSpeed, GT Metrix, etc.

I've been playing around with the best stack to optimize performance. We're using Elementor Pro (I know, but it's what we're using), combined with the Hello theme.

We've limited other plugins and are trying to stay as lean as possible.

We've always hosted with WP Engine (dedicated server), layered Cloudflare on top for DNS management, and leveraged WP Rocket to optimize and cache.

Now that I want to stay lean on the plugin side, do we need WP Rocket?

Would it be more efficient, performance-wise, to use Cloudflare Pro or a Business account?

Will the Cloudflare account cover everything that WP Rocket does for us?

Is this even an apples-to-apples comparison?

[ad_2]
9 Comments
  1. Cloudflare and WP Rocket do not serve the same purpose.

    But if you’re asking whether a performance plugin helps you improve performance, then perhaps you do not need it indeed.

  2. Cloudflare caching and speed optimization is mostly on the DNS level. WP Rocket and other speed plugins work on the server level. I would say both are important to maximize performance. If paying for WP Rocket is part of the decision, there are several free speed plugins that are excellent such as LiteSpeed Caching and Breeze.

  3. You’re confusing a few parts.

    WP Engine = host/server

    Cloudflare = DNS and CDN (to keep it basic)

    WP Rocket = WP cache plugin

    WP Engine is a hosting service for WordPress sites, providing server space and optimized performance. Cloudflare offers DNS and CDN services to direct and speed up traffic, while WP Rocket is a caching plugin that enhances site loading speed.

    WP Engine + Cloudflare:
    [https://wpengine.com/support/cloudflare-best-practices/](https://wpengine.com/support/cloudflare-best-practices/)

    But if you’d like better hosting and a more powerful Cloudflare set up, checkout [rocket.net](https://rocket.net)

    Comes with Cloudflare enterprise

  4. Like others have pointed out, Cloudflare and WP Rocket are two different things. Generally, you do need both of them. Cloudflare is your CDN for static assets (images, media, css, js). WP Rocket creates static html files for your pages.
    Also note that WP Engine itself uses Cloudflare, so you don’t really need your own Cloudflare for caching.

  5. I think a bit of complexity needs to come out to better understand the answer to your question:

    * When someone views your page in their web browser, (skipping DNS and networking) the request to serve the page comes to your server.
    * This goes to your web server, which looks in the folder where your web site is located, and finds that to handle the user’s request it needs to run some php scripts.
    * This is basically a program that runs on the web server. It needs to be compiled and run, which isn’t instant. And…
    * The data that is required to respond to your client and serve the web page also comes from a database, so the web server will make database queries and wait for them before serving the page.
    * All that takes time, then the response needs to go back to the user’s web browser, and part of that response is also a “download these x dozen files,” and *that* takes more time – each connection needs to be created, then the file needs to be requested, and downloaded, and then displayed in the right place.
    * Plugins? yeah, that’s more php code that needs to be processed as well.

    So there are lots of places in this process that can slow your web site down. To speed things up, you can use a faster processor, and faster drives, and a well-tuned database server, and some web server optimization, but all that costs money and is on your provider.

    **The thing you can do is implement caching to speed things up**.

    So, caching isn’t just one thing:

    * That process where PHP gets compiled and then interpreted? If you’re getting 1000 users an hour, that needs to happen 1,000 times, which is kind of dumb because the code isn’t changing. So you can do something called **opcode caching**, where that code gets compiled one and gets cached, until the source PHP changes.
    * Those database queries? They can be cached as well, and having the answer right there in memory is way faster than asking the database. Depending, having it saved on disk might be faster.
    * Pages themselves can be cached, so if your landing page never changes that can be cached as a generated HTML page, and when the web server comes looking to display your site it can be told to just serve the HTML instead.
    * And all those files that the browser needs to download? They can be saved to hundreds of computers across the Internet, so when a user in Vancouver requests your page a little bit of techno magic makes him download all those files from a server that’s really close to him. This sort of caching can be very useful.

    Then, there’s **optimization** that can be done.

    * If you install a plugin to make creating contact forms easy, that code may load on every page by default even if you only ever use it on the Contact-Us page. So smart optimization software can see that and make it only load where it’s needed.
    * All those css and js files? You can strip the comments out of them to make them smaller, and join them all into one file so it can be served faster.
    * Images can be optimized, served in webp format instead of the image you uploaded, set to load only when necessary to speed page load times (if it’s below the fold it will load when the user scrolls down and not before,) and so on.
    * Maybe you want a fast experience, so when a user mouses over a menu it loads in the background, so clicking on that menu results in an instant display.

    You can get more and more aggressive, and take greater and greater risks of breaking things trying to save a few bytes, but in general caching and optimization help.

    Now, WP Rocket does a great job of caching and optimizing. I like it, and use it, and install it for others.

    Cloudflare is a CDN – it is one of those services that caches files close to the user.

    You can use them together and do very well. The defaults may get you where you need to go, and then you just need to remember to dump and reload the cache when you make changes to the site or load plugins.

  6. Try a litespeed server with ls cache and a cdn of your choice. You might be able to get same results . Unpopular suggestion.

    But yes cf and rocket do two different kind of speeding . Rocket does in site optimization and server level performance. Cf does dns level and caching on that level. But no in site optimization really.

  7. WP Rocket and WP Engine go very well together. Cloudflare is a layer in between your site and server. I believe WPE now has free Edge caching on your primary domain, too, so check into that.

    Point is, leave WP Rocket. Add Cloudflare as a layer of security and CDN, activate Edge cache on your primary domain.

  8. I’m absolutely loving Flyingpress with there cloudflare integration now, been super easy and super fast for a few heavy automotive sites I’ve built in Breakdance. I don’t use Wo Engine and just build out through Vultr or Digital Ocean. Not sure if you’d change but I switched from WPRocket and am happy I did with my current aetup

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer