WordPress

Speed up a WordPress site with WP Rocket caching, preloading, and CDN integration.

Contents

  1. Install WP Rocket
  2. Recommended Settings
  3. Exclude Pages from Cache
  4. Test Your Score

Configure WP Rocket for maximum WordPress speed — caching, minification, lazy load, and CDN.

Install WP Rocket

Purchase from wp-rocket.me, then upload via Plugins → Add New → Upload Plugin.

Caching

  • Enable Mobile Cache if your theme is responsive
  • Set cache lifespan to 10 hours for most sites
  • Enable Separate cache files for mobile devices only if you have a separate mobile theme

File Optimization

  • Enable Minify CSS and Combine CSS
  • Enable Minify JS — use Defer JS for non-critical scripts
  • Enable Remove Unused CSS (RUCSS) for significant savings

Media

  • Enable LazyLoad images and iframes
  • Enable Add missing image dimensions to prevent CLS

Preload

  • Enable Activate Preloading
  • Enable Prefetch DNS Requests for external domains

Exclude Pages from Cache

Go to Advanced Rules → Never Cache These Pages and add:

/checkout/
/my-account/
/cart/

Test Your Score

After configuring, test with PageSpeed Insights, GTmetrix, or Pingdom. Aim for LCP < 2.5s and FID < 100ms.