High CPU usage

If you are experiencing high CPU usage on your site, there are a few possible ways WP Rocket could cause this:

  1. Pages are not cached

  2. Make sure that WP Rocket is active and caches your pages:
    How to check if WP Rocket is caching your pages
  3. File Optimization

  4. Occasionally some of the options on the File Optimization tab, such as Minify/Combine can cause high CPU usage in cases where your site has a lot of CSS or JS files. Try disabling these options and then monitor your CPU usage to see if it helps.
  5. Preload

  6. If your site has a lot of pages to preload and/or lacks enough server resources, preloading will cause a spike in CPU usage. If the spike causes a problem for your site you can try:
    • Limiting the number of sitemaps to be preloaded by un-checking WP Rocket's automatic sitemap detection from your SEO plugin (e.g. Yoast) and specifying only the most important ones to be preloaded:
    • Increasing the crawl interval
    • Deactivating sitemap-based preloading
    • If deactivating only sitemap-based preloading doesn't help, disable preload completely
    • Increasing the Cache Lifespan to avoid too frequent entire cache deletion and preloading
    • Setting up cron jobs to clear and preload the cache during periods of low server activity
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.