Your Trusted Web Hosting Partner Since 2021

How to use WP Rocket

WP Rocket

WP Rocket

WP Rocket is a popular caching plugin for WordPress that helps improve your website’s speed and performance. It’s user-friendly and doesn’t require extensive technical knowledge to set up. Here’s a step-by-step guide on how to use WP Rocket:

Upload and Install:

  • Log in to your WordPress dashboard.
  • Go to Plugins > Add New.
  • Click on the Upload Plugin button.
  • Choose the downloaded .zip file and click Install Now.
  • Once installed, click Activate Plugin.

Access WP Rocket Settings:

After activation, you’ll be redirected to the WP Rocket settings page, which can also be accessed later via Settings > WP Rocket in your WordPress dashboard.

Cache Settings:

  • Mobile Cache: Ensure this option is enabled if you want to cache mobile versions of your site. If your theme is fully responsive, caching for mobile devices is usually a good idea.
  • User Cache: Enable this option if you have a membership site or any logged-in users, so their pages are cached as well.
  • Cache Lifespan: Set the cache lifespan (default is 10 hours). This is how often the cache will be cleared automatically. For most sites, the default setting is fine.

File Optimization:

  • Minify CSS Files: This reduces the size of CSS files by removing unnecessary characters. Enable this option if your site doesn’t break with minification.
  • Combine CSS Files: Combine multiple CSS files into one to reduce HTTP requests. Test your site after enabling to ensure it doesn’t break.
  • Minify JavaScript Files: Like CSS minification, this reduces the size of JavaScript files. Enable and test.
  • Combine JavaScript Files: Similar to combining CSS files, this combines multiple JavaScript files. Use with caution and test your site for any issues.
  • Load JavaScript Deferred: Delays the loading of JavaScript until after the page content is rendered. This can improve page speed but may cause some scripts to load later. Test thoroughly.

Media Optimization:

  • LazyLoad: Enable LazyLoad for images and iframes. This loads images and videos only when they’re visible in the user’s viewport, which can significantly improve load times.
  • Disable WordPress Emojis: Disabling emojis can slightly reduce the number of requests made to load emoji-related scripts.
  • Disable Embeds: Prevents others from embedding your content on their sites, reducing requests.

Preload Cache:

  • Enable cache preloading to generate cached versions of your pages immediately after the cache is cleared, instead of waiting for users to visit them.
  • You can also enable Sitemap-based preloading if you use a sitemap, so WP Rocket can preload all the pages listed in your sitemap.

Advanced Rules:

  • Here, you can specify pages or cookies that should never be cached, such as admin pages or shopping cart pages.
  • You can also set URLs that should always be purged from the cache whenever the content is updated.

Database Optimization:

  • WP Rocket includes a database optimization feature. You can clean up post revisions, drafts, spam comments, and transients to reduce the size of your database.
  • Schedule automatic database cleanups if you want regular maintenance.

Heartbeat Control:

The WordPress Heartbeat API helps with tasks like autosaving, but it can also consume server resources. WP Rocket allows you to reduce or disable the Heartbeat API, which can help improve performance.

Add-ons:

WP Rocket offers various add-ons, including integration with Google Analytics, Varnish cache, and Cloudflare. Enable any relevant add-ons to enhance performance further.

Add-ons:

Subscribe to our Resources

Get latest industry news and updates

Popular Articles

Scroll to Top