WP Rocket is one of the most popular page caching plugins, but it includes several additional features worth utilizing. Optimizations such as minification, combining of CSS/JS files, and regular database cleanup can be easily accomplished with the plugin as well!
Below are our best-recommended settings to get the most out of WP Rocket on your Flywheel site.
When WP Rocket detects that a site is on Flywheel, page caching is disabled automatically. Adjusting caching settings such as Mobile Cache, User Cache, and Cache Lifespan will have no effect.
Because plugin caching is disabled, we recommend disabling any Preloading options as well, as these will be ineffective and could even impact system resources.
However, the file optimization cache for static files (JS and CSS) will still work.
Check every option in the Basic Settings.
Additionally, if a site uses HTTP/2, combining files is not necessarily recommended. Check out these articles from WP Rocket for more information:
Cache folder is getting too big
Fix Large Cache Folder Size Caused by Dynamic Inline JS
Configuration for HTTP/2
Use the LazyLoad feature with caution. Sometimes, this feature is not compatible with other plugins or theme page builders and results in performance degradation rather than improvement. Given the benefits of HTTP/2 and the new HTTP/3, lazy loading is no longer beneficial in a post-HTTP 1.1 world.
Check Disable Emoji.
Check this option to prevent others from embedding content from your site.
If planning to convert images to WebP format, select to enable support for caching them. Keep in mind this feature only serves WebP images. It does not create them.
Leave Activate Preloading unchecked.
Leave Enable Preload Links unchecked. This feature works similar to Preload Cache above and can degrade site performance.
If you are using Google Analytics, are serving ads, or have other external resources on your site, Prefetch DNS Requests can help speed up the loading of these resources.
Using a site performance tool such as Pingdom Tools or GTMetrix can help you identify any external resources (i.e., resources that aren’t being loaded from your site’s domain).
For example, in GTMetrix, look at the Reduce DNS Lookups section in the YSlow report. Copy the external domains for any third-party scripts and paste them (one per line) in the URLs to prefetch area.
WP Rocket also provides more granular control over what it can add to its cache. Sometimes, you need to ensure some pages are never explicitly cached, or a specific cookie needs to be avoided. In such cases, you can use the available options in this section to fine-tune the cache.
One of the most significant contributing factors to slow sites is unnecessary data within the database. Databases can accumulate cruft due to a plethora of reasons such as abandoned shopping carts, post-saved draft points, transients, and more.
Selecting every option in these sections is recommended.
We recommend choosing a Weekly frequency for auto cleanup. Since Flywheel takes backups nightly, if the database optimization were to cause any issues, you will have a few backup options to restore to pre-cleanup.
WordPress’ native Heartbeat can be a blessing and a curse. If you notice admin-ajax.php is contributing to a high load on the site, you can help reduce it by disabling or limiting it. Set the desired activity within this setting. Typically, the best option is to select Reduce Activity.
If you’re using Google Analytics, Facebook Pixel, Cloudflare, or other services, you can enable better compatibility with them and WP Rocket by enabling those options.
The developers of WP Rocket have also built their own image optimization service called Imagify. Optimizing your images is crucial for reducing the overall size of the site. The lower you can drop the size of the site, the faster the site will render completely.
Imagify is probably one of the better image optimization services available for WordPress. Fortunately, Imagify’s background process for optimizing images doesn’t impact WP-Admin performance to the degree ShortPixel and others do.
If site speed is of top priority, using a service such as Imagify is highly recommended.
This section can be used to export/backup your current settings or import a settings file from another WP Rocket configuration.
The other helpful feature is Rollback. If a newly updated version of WP Rocket causes issues, you can easily roll back to the previous version.
When uninstalling WP Rocket from your site, you may need to click “Force Deactivate.”
If you run into any snags removing the plugin via your dashboard, you can remove the plugin manually by following the instructions here.
After you’ve removed the plugin, it’s a good idea to disable WP_CACHE
.
If you have any questions our Happiness Engineers are here to help!
New to Flywheel? Start here, we've got all the information you'll need to get started and launch your first site!
View allLearn all about managing your Flywheel user account, Teams and integrations.
View allFlywheel hosting plans include a ton of great features. Learn about how to get a free SSL certificate, set up a staging site, and more!
View allAll the server and setting info you'll need to help you get the most out of your Flywheel hosting plan!
View allTips and tricks for managing your sites on Flywheel, including going live, troubleshooting issues and migrating or cloning sites.
View allLearn more about Growth Suite, our all-in-one solution for freelancers and agencies to grow more quickly and predictably.
Getting started with Growth Suite
Growth Suite: What are invoice statuses?
Growth Suite: What do client emails look like?
Learn more about Managed Plugin Updates, and how you can keep your sites up to date, and extra safe.
Restoring Plugin and Theme Management on Flywheel
Managed Plugin Updates: Database upgrades
Managed Plugin Updates: Pause plugin updates
We can help! Check out our Brand Resources page for links to all of our brand assets.
Brand Resources