User Agents

Web browsers and everyday web tech, explained

How to Clear WP Rocket Cache (3 Quick Ways)

· 6 min read · Cookies and Cache

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Clearing the WP Rocket cache forces your WordPress site to regenerate fresh HTML pages, CSS, and JavaScript, which is essential after making design changes, updating plugins, or troubleshooting display issues. This guide shows you three reliable methods: using the admin bar, the plugin settings page, and a manual server-level purge. No technical skills are required, but you'll need access to your WordPress admin dashboard and, for the manual method, an FTP client or file manager in your hosting control panel.

What You'll Need

  • WordPress admin login credentials
  • For the manual method: FTP client (like FileZilla) or your hosting file manager
  • Optional: a caching plugin like WP Rocket (obviously installed and active)

Step-by-Step

  1. Log in to your WordPress admin dashboard. Go to yourdomain.com/wp-admin and enter your credentials.
  2. Locate the WP Rocket admin bar icon. Once logged in, look at the top black toolbar (admin bar) in WordPress. You'll see a WP Rocket icon (a small rocket) next to your site name. Hover over it to reveal a dropdown menu.
  3. Click "Clear Cache" from the dropdown. This is the quickest method. It clears the entire cache (page cache, minified CSS/JS, and preloaded files). You'll see a brief spinner, then a confirmation message like "Cache cleared."
  4. Alternative method: via WP Rocket settings. In the left sidebar of your WordPress admin, click Settings > WP Rocket. This opens the plugin's dashboard.
  5. Click the "Clear Cache" button on the dashboard. In the WP Rocket settings page, you'll see a prominent button labeled "Clear Cache" at the top. Click it. A green notice will appear confirming the purge.
  6. For a more granular purge, use the "Clear used cache" option. In the same settings page, you can also click "Clear used cache" to remove only the cached files that are actively served to visitors, keeping preloaded cache intact. This is useful if you only changed a single page.
  7. Manual method: delete cache files via FTP. If the above methods fail (e.g., you're locked out of admin), connect to your server via FTP or file manager. Navigate to /wp-content/cache/wp-rocket/. Delete the entire folder's contents (or the whole folder—WP Rocket will recreate it). Also delete the /wp-content/cache/min/ folder if it exists (for minified CSS/JS).
  8. After manual deletion, log in to WordPress and go to WP Rocket settings. Click "Clear Cache" once more to ensure the plugin's internal flags are reset. This also triggers a fresh preload if you have that enabled.
  9. Verify the cache is cleared. Visit your site in an incognito/private browser window. Hard refresh (Ctrl+F5 on Windows, Cmd+Shift+R on Mac) to bypass browser cache. Check that your recent changes appear.

Common Mistakes

  • Only clearing the browser cache. Users often clear their browser cache but forget the server-side WP Rocket cache. Always use the admin bar or settings button.
  • Deleting the entire wp-content/cache folder. This can break other plugins that use that folder (e.g., Autoptimize). Only delete the wp-rocket and min subfolders.
  • Not clearing after every update. If you change a widget, theme color, or plugin setting, the old cached version may still be served. Make it a habit to clear after any front-end change.
  • Using the wrong button. WP Rocket has "Clear Cache" and "Clear used cache"—the first is a full purge, the second is partial. If you're unsure, use the full purge.

Tips

  • Enable the "Clear cache after updating" option. In WP Rocket settings under the "Advanced Rules" tab, you can auto-clear the cache whenever you update a post or page. This saves manual effort.
  • Use the "Preload" feature after clearing. After a full cache clear, the site will be slow for the first few visitors. WP Rocket can preload pages in the background—go to Settings > WP Rocket > Preload and enable it.
  • Exclude dynamic pages from caching. If you have a cart or user-specific content, add those URLs to the "Never Cache" list under Settings > WP Rocket &em; Advanced Rules to avoid stale data.
  • Keep an eye on the heartbeat. WP Rocket's cache is stored in files, not the database. If you have a lot of pages, the cache folder can grow large—regularly purge it if you're low on disk space.

Troubleshooting

Cache not clearing after clicking the button. If the button doesn't work, check your WordPress error log for PHP errors. Often this is due to a plugin conflict—temporarily deactivate other caching plugins (e.g., W3 Total Cache) and try again. Also ensure your server has write permissions to the wp-content/cache directory.

Changes still not showing after clearing. This usually means your browser or a CDN is caching the files. Clear your browser cache and any CDN (like Cloudflare) cache. In Cloudflare, go to the Caching tab and click "Purge Everything." Also, check if you have a page builder like Elementor that has its own cache (clear that too).

Site becomes slow after clearing. This is normal—the cache is empty and needs to rebuild. Enable preload (as mentioned above) to speed up the process. If it stays slow, check if the cache is being regenerated correctly by visiting a few pages and then checking the cache folder for new files.

Locked out of admin and can't clear via FTP. If you don't have FTP access, use your hosting file manager (cPanel, Plesk) to delete the cache folders. If that's not possible, you can add a small PHP snippet to your theme's functions.php via the WordPress admin—but that's circular if you're locked out. In that case, contact your host for support.

Frequently Asked Questions

How often should I clear the WP Rocket cache?

Only when you make changes to your site's content, design, or functionality. If you don't change anything, you don't need to clear it. Frequent clearing defeats the purpose of caching.

Does clearing the cache delete my settings?

No. Clearing the cache only removes the stored HTML/CSS/JS files. Your WP Rocket configuration (settings, exclusions, preload options) remains intact.

Will clearing the cache affect my SEO?

No, not directly. The cache is for performance, not content. However, if you clear it and your site loads slowly for a few minutes, it could temporarily affect user experience—but search engines won't penalize you for that.

Can I clear only one page's cache?

Yes. In the WP Rocket settings, go to the "Database" tab and you'll see an option to "Clear used cache" which clears only the files that have been accessed. There's also a per-page clear option in the admin bar when you hover over a page in the WordPress editor—look for "Clear this page's cache."

What's the difference between "Clear Cache" and "Clear used cache"?

"Clear Cache" removes all cached files, including preloaded ones. "Clear used cache" only removes files that have been served to visitors, keeping the preloaded cache intact. The latter is faster but less thorough.

Why is my site still showing old content after clearing?

This is almost always a browser cache or CDN issue. Try a hard refresh, clear your browser's cache, or purge your CDN. If you're using a hosting-level cache (like SiteGround's), clear that too.