Speed & performance · Guide
How to Clear Cache with WP Optimize (Step by Step)

Short answer
Go to WP-Optimize, open the Cache tab and click Purge cache, or use the WP-Optimize menu in the admin toolbar while viewing a page. If style changes still do not show, reset the minified files on the Minify tab and then clear your browser and CDN caches.
Key takeaways
- Purge cache is on the WP-Optimize Cache tab.
- The admin toolbar lets you purge without leaving the page.
- Minified CSS and JS files are reset separately on the Minify tab.
- Test logged out in a private window to see what visitors get.
- Browser, host and CDN caches can still serve old copies.
- Never run two page cache plugins at the same time.
How do you clear the cache with WP-Optimize?
Go to WP-Optimize > Cache in your WordPress dashboard and click Purge cache, or use the WP-Optimize item in the admin toolbar to clear the cache without leaving the page you are on.
That one button removes every cached page file WP-Optimize has stored. The next visitor to each page triggers a fresh copy.
WP-Optimize also stores minified CSS and JavaScript separately from the page cache. If a design change still does not show after a purge, you may need to reset those files too.
This guide walks through each method, explains what each button clears, and covers the other cache layers that often hide changes. If you have not set the plugin up yet, start with our guide on how to set up WP-Optimize.
What does WP-Optimize actually cache?
WP-Optimize can cache full HTML pages, minified and combined CSS and JavaScript files, and it can send browser caching headers, so there are several separate things you might need to clear.
Each layer lives in its own place and has its own reset option. Clearing one does not always clear the others.
| Cache layer | Where to clear it | When to clear it |
|---|---|---|
| Page cache | Cache tab, Purge cache button or admin toolbar | Content or layout changes not showing |
| Minified CSS and JS | Minify tab, reset or purge minified files option | Style or script changes not showing |
| Browser cache | Your own browser, hard refresh | Only you see the old version |
| Server or CDN cache | Host panel or CDN dashboard | Changes missing after WP-Optimize purge |
If you are not sure which layer is stale, clear them in the order shown in the table. That order moves from the most common cause to the least common.
You can read more about how page and object caching differ in our explainer on page cache vs object cache.
How do you purge the page cache from the settings screen?
Open WP-Optimize > Cache, stay on the page cache section, and click the Purge cache button to delete all cached pages at once.
Here are the steps in order:
- Log in to your WordPress dashboard as an administrator.
- In the left menu, go to WP-Optimize and then Cache.
- Make sure you are on the page cache section, which is the first one shown.
- Click Purge cache.
- Wait for the confirmation message, then reload the page you changed.
The button only appears if page caching is turned on. If you see a switch to enable caching instead, the page cache is not active and something else is serving the old version.
The plugin listing on WordPress.org describes the cache, minify and database features if you want to confirm what your version includes.
How do you clear the cache from the admin toolbar?
When you are logged in and viewing your site, hover over the WP-Optimize item in the top admin toolbar and choose the purge option to clear the cache for the current page or the whole site.
This is the fastest method when you are checking a single page. You edit the page, view it, and purge from the same screen.
Clearing just one page is useful on large sites. It avoids forcing every page to rebuild, which can briefly slow the site while the cache refills.
If the toolbar item is missing, check that the admin toolbar is turned on in Users > Profile. Some security or cleanup plugins also hide toolbar items.
How do you reset minified CSS and JavaScript files?
Go to WP-Optimize > Minify and use the option there to reset or purge the minified files, which forces WP-Optimize to build new CSS and JavaScript files.
Minified files are created when WP-Optimize combines or compresses your theme and plugin assets. If you change a stylesheet, the old combined file can stay in use.
This is the usual reason a colour, font or spacing change refuses to appear. The page cache was cleared, but the page still points at the old minified file.
After resetting, purge the page cache as well. Cached pages may still reference the old file names.
If styles break after minifying, see our guide to CSS changes not showing for other causes such as theme caching and child theme load order.
When does WP-Optimize clear the cache automatically?
WP-Optimize clears cached copies on its own when you publish or update content, and it also expires cached pages after the lifespan you set in the cache settings.
The vendor explains these triggers in its FAQ on when WP-Optimize clears the page cache. In short, editing a post usually clears that post and related pages such as the home page.
Automatic purging does not cover every change. Changes made outside the editor often need a manual purge. Common examples include:
- Editing theme files or the Customizer.
- Changing widgets, menus or footer content.
- Updating a plugin that changes front-end output.
- Changing settings in a page builder's global styles.
- Editing files directly over FTP or SSH.
After any of these, a manual purge is the safest move.
Why are changes still not showing after you purge?
If changes still do not appear after purging, the old version is usually coming from your browser, your host's server cache, a CDN such as Cloudflare, or minified files that were not reset.
Work through these checks one at a time:
- Open the page in a private or incognito window. If the change shows there, your browser cache is the problem.
- Do a hard refresh. On most desktop browsers this is Ctrl + Shift + R or Cmd + Shift + R.
- Reset the minified files and purge again.
- Check whether your host runs its own cache. Many managed hosts do.
- Purge your CDN if you use one.
Browser caching is controlled by headers such as Cache-Control. MDN's reference on Cache-Control explains how long browsers keep files.
If you use Cloudflare, its documentation on purging cached content covers the dashboard options. Our guide on how to clear Cloudflare cache in WordPress walks through it step by step.
How do you check whether a page is served from the cache?
View the page logged out, open the page source, and look near the bottom for a comment added by WP-Optimize that shows the page was cached and when.
Logged-in administrators usually do not see cached pages. That is why testing while logged in can be misleading.
Open a private window, load the page, then right-click and choose View page source. Scroll to the end of the HTML.
You can also open browser DevTools and check the response headers on the Network tab. Chrome's guide to inspecting network activity shows where to find them.
If there is no cache comment, the page may be excluded from caching, or another plugin may be handling caching instead.
Should you clear the cache after every change?
No, you only need to purge when a change does not appear on its own, or after editing themes, menus, widgets, plugins or other site-wide settings.
Purging too often has a small cost. Each cleared page must be rebuilt on the next visit, so the first visitor gets a slower response.
If you have the preload feature turned on, WP-Optimize can rebuild the cache for you after a purge. That keeps the first-visit slowdown away from real visitors.
A good routine is to purge once after a batch of changes, not after each small edit.
What if you run another cache plugin too?
Do not run WP-Optimize page caching alongside another page cache plugin such as WP Rocket or LiteSpeed Cache, because two caches cause conflicts and make purging unreliable.
If you already have another caching plugin, turn off the WP-Optimize page cache and keep using its database cleanup and image features.
Two page caches can serve different versions of the same page. Clearing one leaves the other serving stale content, which looks like the purge did nothing.
If you are unsure which plugin is in charge, our guide to clearing the cache in WordPress explains how to find every cache layer on a site.
What can you do if the purge button does nothing?
If clicking Purge cache shows no message or an error, the cause is usually a file permission problem on the cache folder, a security rule blocking the request, or a JavaScript conflict in the dashboard.
Try these fixes in order:
- Reload the settings page and try again.
- Open the browser console and look for red errors when you click the button.
- Check that the wp-content cache folder is writable by the web server.
- Temporarily disable security plugins or firewall rules, then test.
- Deactivate other plugins one at a time to find a conflict.
File permission issues are covered in our guide on setting correct file permissions in WordPress.
If none of this works, turning the page cache off and on again often rebuilds the cache folder and its configuration file.
Frequently asked questions
Does purging the WP-Optimize cache delete my content?
No. Purging only removes the saved HTML copies of your pages. Your posts, pages, settings and media stay exactly as they are, and WP-Optimize simply builds new cached copies the next time each page is visited.
Why does my site feel slower right after clearing the cache?
Each page has to be generated again by PHP and the database on its first visit after a purge. Once the cache refills the speed returns. Turning on cache preloading rebuilds pages in the background so visitors are less likely to hit an uncached page.
Do I need to clear the cache after updating a post?
Usually not. WP-Optimize clears the cached copy of a post when you update it, along with related pages such as the home page. You mainly need a manual purge after theme, menu, widget or plugin changes.
Is clearing the WP-Optimize cache the same as cleaning the database?
No. Cache purging removes stored page files, while database optimisation removes revisions, spam comments, transients and similar data. They are separate features on separate tabs and running one does not run the other.
Why do I still see the old page when logged in?
Logged-in users normally bypass the page cache, so an old version usually comes from your browser cache, minified files or a CDN. Do a hard refresh, reset minified files, and check the page in a private window.
Sources
- WP-Optimize WordPress.org Plugin Directory
- When does WP-Optimize clear the page cache? WP-Optimize
- Cache-Control MDN Web Docs
- Purge cache Cloudflare Docs
- Inspect network activity Chrome for Developers
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


