Clear Cache Everywhere
Settings
In the admin area of your site, navigate to Tools > Clear Cache Everywhere.
- Rewrite Rules: Clears and regenerates WordPress rewrite rules. This ensures permalinks, custom post types, and taxonomy URLs function correctly—especially after changes to
.htaccessor permalink settings. Sometimes sites do not like to process this request regularly, so if you are seeing that it's failing to refresh your rewrite rules, you can disable this and do it manually from the Settings > Permalinks page simply by resaving the settings. - WordPress Object Cache: Flushes the WordPress object cache using
wp_cache_flush(). This clears cached objects stored in memory to force fresh data retrieval. - Transients: Deletes temporary data stored in the database by WordPress or plugins, forcing them to regenerate fresh values on the next request.
- OPcache Reset: Resets PHP OPcache so that compiled PHP scripts are reloaded from disk. This is useful after plugin or theme updates, or if code changes are not being reflected immediately.
- Varnish Cache: Purges cached pages from Varnish if detected. This forces reverse proxy caches to serve fresh content. Propagation may take a few seconds.
- Redis / Memcached: Flushes persistent object caches if Redis or Memcached is active. Large caches may take several seconds to fully clear.
- Fragment Cache: Clears cached template fragments used by themes or plugins. This ensures any partial templates or widgets are regenerated on the next request.
- REST API Cache: Removes cached REST API responses so endpoints return fresh data. Useful for sites that rely heavily on API-driven content.
- Sessions: Destroys all PHP sessions for the current request. This can help reset user-specific data stored in sessions, such as login states or cart info.
- Cookies: Deletes most cookies by expiring them, except those essential for keeping logged-in WordPress users logged in. Useful for resetting client-side data and simulating fresh visits.
- Browser Cache: Sends no-cache headers to the browser to prevent it from using outdated versions of assets or pages. This forces browsers to re-fetch content.
- Hosting Cache: If your web host supports external cache purging via a URL, this setting will simply request that URL to clear your host’s server-level cache. Handy for platforms like GoDaddy (Website Security Firewall), Kinsta, or WP Engine.
Clearing the Cache
It's easy! Just use the "Clear Cache" link in the admin bar or click the "Clear Cache Now" button in the plugin settings to clear all cache layers at once.
If you only need to refresh specific parts of the site, each cache type also has its individual clear button in the settings. For example, you can clear just the object cache, sessions, or browser cache without touching other layers.
Recommendations:
- Keeping “Clear All” lean ensures faster cache purging and avoids unnecessary performance hits or user logouts.
- Some actions, like Transients, OPcache Reset, Redis / Memcached, or Varnish can be heavy or unnecessary for routine content updates. Consider disabling these from the “Clear All” button and admin bar for daily use.
- Use the individual clear buttons to target these layers only when required, such as after plugin or theme updates, code changes, or major configuration changes.
