Best WP Rocket Settings (2023)

Published:  October 24, 2021

Cache Settings

Cache-settings-for-WP-Rocket

On the Cache page, only select the first setting, “Enable caching for mobile devices.”

Do not separate cache files for mobile devices unless you have a different mobile website.

Optimize-CSS-Files

Optimizing CSS Files

Select the following optimizations:

  • Minify CSS
  • Optimize CSS Delivery

When you select “Optimize CSS Delivery,” it will provide you with two options, “Remove unused CSS” and “Load CSS Asynchronously.” You can try both settings and see what gives you better performance.

Caution: Removing unused CSS may break some elements on your pages. I recommend defaulting to loading your CSS asynchronously.

Optimize-JavaScript-Files

Optimizing JavaScript Files

This panel on the “File Optimization” page can lead to the biggest potential breakage on your website. To be safe, follow these steps in this exact order:

  • Enable “Minify JavaScript Files”
  • Save your changes and test your website
  • Select Delay or Defer JavaScript. Both do different things, and if one setting breaks your website, the other may work.
  • Start with Defer and then try Delay if it doesn’t help.
  • Save your changes and test your website again.

If anything breaks, exclude those files from being deferred/delayed.

Optimize Images & Media

Optimize-Media-WP-Rocket

On the Media page, select all available options. However, I strongly recommend excluding any above the fold images from lazy loading. This will greatly help improve your FCP scores.

Preloading

WP-Rocket-Preloading

On the preloading page, leave the first two check boxes as deselected. Activating the first two preloading options can degrade host caching and cause slower load speeds over time.

Prefetch DNS Requests

If your website is relying on any third-party scripts or files, it may be beneficial to prefetch the DNS. Unsure how to do this?

  1. Inspect the page in Chrome,
  2. Go to Network,
  3. Hit refresh
  4. Look at all of the files from external domains
  5. Copy the URL and paste it in the prefetch field

Preload Fonts

Please note that this only works for fonts that are hosted locally on your server.

Optimize Database

Database-Optimization-pt-1

Before touching any settings on this page, make sure to take a backup of your website. Changes on this page cannot be reversed, unless you have a backup.

The first section handles revisions, trashed posts and pages, and auto drafts. As long as you have regular backups of your website, it’s generally safe to select these options to remove.

The second section handled spam and deleted comments. I do recommend selecting these options to clean out any junk comments taking up space on your server.

Database-Optimization-pt-2

The third section section handles transient files. These are temporary files and safe to select to optimize.

The last section optimizes the database tables. I do recommend selecting this option, but make sure you took a backup of your website beforehand.

Integrate Your CDN

Integrate-CDN-with-WP-Rocket

If you’re using a CDN, this page will help you integrate your CDN files with WP Rocket. If you’re using Cloudflare, you can skip this section.

Controlling WordPress Heartbeat

Heartbeat-Settings-WP-Rocket

By default this setting is left enabled. I highly recommend leaving this setting as enabled.

« Back to All WordPress Tricks