Title: HTL Clear All Cache
Author: hashtechlogic
Published: <strong>October 3, 2026</strong>
Last modified: October 3, 2026

---

Search plugins

![](https://ps.w.org/hash-tech-logic-cache-clearing/assets/banner-772x250.jpg?rev
=3726143)

![](https://ps.w.org/hash-tech-logic-cache-clearing/assets/icon-256x256.png?rev=
3726143)

# HTL Clear All Cache

 By [hashtechlogic](https://profiles.wordpress.org/hashtechlogic/)

[Download](https://downloads.wordpress.org/plugin/hash-tech-logic-cache-clearing.zip)

 * [Details](https://wordpress.org/plugins/hash-tech-logic-cache-clearing/#description)
 * [Reviews](https://wordpress.org/plugins/hash-tech-logic-cache-clearing/#reviews)
 *  [Installation](https://wordpress.org/plugins/hash-tech-logic-cache-clearing/#installation)
 * [Development](https://wordpress.org/plugins/hash-tech-logic-cache-clearing/#developers)

 [Support](https://wordpress.org/support/plugin/hash-tech-logic-cache-clearing/)

## Description

HTL Clear All Cache (by Hash Tech Logic) is a lightweight, standalone cache manager
for WordPress. It clears the cache layers your site can actually control, detects
the ones it cannot, and always tells you exactly what happened.

**Clear what you control. Detect what you don’t.**

It does not need WooCommerce, Elementor, WP Rocket, LiteSpeed Cache, W3 Total Cache
or any other plugin. When one of those is present, the plugin detects it and can
optionally ask it to purge its own cache through its public API, but only after 
you turn that on.

#### Features

 * **Clear All Cache** in one click, with a clear summary: what was cleared, what
   was skipped (not available) and what failed.
 * **Individual clearing** for each cache, plus **Clear Selected** with checkboxes.
 * **Admin Bar quick menu** on the dashboard and on the front end: Clear All, Clear
   Plugin Cache, Clear Transients, Clear Object Cache (when available) and Cache
   Settings. Results appear in a small notification without reloading the page.
 * **Cache environment scanner**: WordPress, persistent object cache, Redis, Memcached,
   APCu, page-cache drop-ins, cache plugins, hosting cache, PHP OPcache and CDNs
   that are visible in response headers.
 * **Automatic clearing** after content is published, updated or deleted, after 
   theme, plugin and WordPress updates, after theme switches, after Customizer changes
   and after selected settings pages are saved. Every trigger can be turned on or
   off individually, and several changes in one request cause just one clear.
 * **Statistics**: plugin cache size and file count, transients in the database,
   object cache type, number of clear operations, last duration and times cleared
   per cache.
 * **Activity log** with time, action, source, result, duration, per-cache messages
   and the user who ran it. Retention period and maximum size are configurable.
 * **Optional browser cache-busting** for your CSS and JavaScript files.
 * **Multisite aware**: each site has its own settings, log and plugin cache. Actions
   from one site never affect other sites unless a network administrator explicitly
   allows it.
 * **Modular**: every cache type is a module behind one contract, so new integrations
   can be added without changing the core.

#### Cache modules

 * **Plugin Cache** – a namespaced cache folder fully controlled by this plugin (`
   wp-content/cache/cache-clearing/site-{ID}/`). Themes and plugins can store data
   in it through a small developer API. Its size and file count are shown on the
   dashboard.
 * **Transients** – temporary data stored in the database by WordPress, themes and
   plugins. By default only expired transients are removed. You can choose to remove
   all transients instead.
 * **Object Cache** – a persistent object cache such as Redis or Memcached, flushed
   only through the WordPress object cache API (`wp_cache_flush()`). If none is 
   active it shows “Not detected”.
 * **Browser Cache-Busting** (optional, off by default) – adds a version token to
   your site’s CSS and JavaScript URLs so browsers download fresh copies after a
   clear.
 * **Integrations** (optional, off by default) – WP Rocket, LiteSpeed Cache, W3 
   Total Cache, WP Super Cache, WP Fastest Cache, Cache Enabler, SiteGround Speed
   Optimizer, Nginx Helper, Autoptimize and Elementor CSS files. Each one only calls
   that plugin’s own public purge function or action.

#### What this plugin never does

 * It never reports a cache as cleared when the operation failed.
 * It never deletes another plugin’s cache folders or files.
 * It never accepts a file path from a form and never deletes files outside its 
   own folder.
 * It never runs shell commands.
 * It never claims to delete a visitor’s browser cache (no website can do that).
 * It never mixes database optimization into “Clear All Cache”.

### Usage

#### Dashboard

 * **Clear All Cache** clears every cache that is available and safe on this site.
 * The **cache status cards** show each cache’s state, size and details, with its
   own clear button.
 * **Clear Selected** lets you tick exactly which caches to clear.
 * **Statistics** and **Recent activity** show what happened and when.
 * **Scan Cache Environment** opens the Environment page with fresh results.

#### Environment

Click **Scan Cache Environment** to see which cache layers are active. The scan 
only reads information and never changes anything. It loads your homepage once, 
as a logged-out visitor, to look for page-cache and CDN headers.

#### Logs

Shows every clear, scan and settings reset with its result and details. Use **Clear
Logs** to delete all entries.

#### Settings

 * **Automatic Clearing** – choose the triggers and which caches they clear. By 
   default automatic clears only touch the lightweight plugin cache and expired 
   transients.
 * **Admin Bar** – show or hide the quick menu, on the dashboard and on the front
   end.
 * **Cache Behaviour** – clear expired transients only (recommended) or all transients.
 * **Integrations** – turn on supported cache plugins you want to purge from here.
 * **Logging** – turn the log on or off, include or exclude automatic clears, and
   set retention (1–365 days) and maximum entries (10–500).
 * **Advanced** – browser cache-busting and, on multisite, whether the shared object
   cache may be flushed.
 * **Reset Settings** – restore every default. Logs, statistics and cached data 
   are kept.

### Troubleshooting

#### The Plugin Cache card says “Not writable”

WordPress cannot create or write to `wp-content/cache/cache-clearing/`. Ask your
host to make `wp-content/cache/` writable by the web server. The other caches still
work.

#### “Safety check failed: the plugin cache folder could not be verified”

The folder is missing its marker file or has been replaced by a link to another 
location, so nothing was deleted. Deactivate and reactivate the plugin to recreate
the folder safely.

#### “Another cache-clearing operation is already running”

Two clears were started at the same time. Wait a few seconds and try again. A lock
left behind by a crashed request expires automatically after two minutes.

#### The object cache flush failed

The cache server did not confirm the flush. Check that Redis or Memcached is running
and that the connection settings of your object cache plugin are correct. The Environment
page shows the connection state when the drop-in reports it.

#### The homepage check on the Environment page failed

Your server could not load its own homepage (a “loopback request”). This is common
on local development servers and some firewalled hosts. The rest of the scan still
works.

#### The Admin Bar menu is missing

Check Settings  Admin Bar, make sure the Admin Bar is shown for your user in your
profile, and that you are an administrator.

#### An integration shows “failed”

The other plugin is active but did not register its public purge function or action,
for example because its caching is switched off in its own settings. Nothing was
purged, so the plugin reports a failure instead of pretending it worked.

### Security

 * Every action checks the user’s capability and a WordPress nonce, including Admin
   Bar links and background (AJAX) requests. There are no actions for logged-out
   visitors.
 * All input is sanitized and validated against known values. Cache types are chosen
   from a fixed list; file paths are never accepted from users.
 * All output is escaped. Background requests return HTML rendered and escaped by
   the server, and scripts insert text with `textContent`.
 * Database queries use `$wpdb->prepare()` and only touch transient rows of the 
   current site.
 * The plugin cache folder is fixed in code, verified with `realpath()` and a marker
   file before anything is deleted, and symbolic links are never followed. Only 
   files matching the plugin’s own naming pattern are deleted. Cache files start
   with `<?php exit; ?>`, are protected by `.htaccess` and `index.php`, are stored
   as JSON and are never included or executed.
 * Redirects after an action use `wp_safe_redirect()` and only go back to pages 
   on this site. Result notices are one-time, private to the user who ran the action
   and expire after five minutes.
 * The log stores no passwords, secrets, IP addresses or e-mail addresses, only 
   the numeric user ID. Error messages are redacted before saving.
 * No shell commands are executed and no external services are contacted. The only
   outgoing request is the optional environment scan of your own homepage.

### Compatibility

 * WordPress 6.1 or newer (tested up to 7.1), PHP 7.4 or newer (tested on PHP 8.4).
 * Works with block themes and classic themes. Changes to block theme templates,
   template parts, global styles and navigation also trigger automatic clearing.
 * Works with and without a persistent object cache. Tested with Redis Object Cache.
 * Multisite: settings, logs and the plugin cache are per site. Network-wide operations(
   object cache flush and integrations that may purge every site) are only possible
   after a network administrator allows them. There is no network admin screen in
   version 1; manage caches from each site’s dashboard.
 * Works without JavaScript: every button also works as a normal form or link.
 * The “Update URI” plugin header prevents WordPress from offering updates for an
   unrelated WordPress.org plugin with the same folder name. Remove that header 
   if you publish this plugin on WordPress.org.

### For developers

#### Store data in the plugin cache

    ```
    cache_clearing_set( 'key', $value, 'my-group', HOUR_IN_SECONDS );
    $value = cache_clearing_get( 'key', 'my-group', $default );
    cache_clearing_delete( 'key', 'my-group' );
    ```

Values must be JSON-serializable. Everything stored this way is removed when the
Plugin Cache is cleared.

#### Clear everything from code

    ```
    $result = cache_clearing_clear_all(); // Returns a Cache_Clearing\Operation_Result.
    ```

This makes no capability check, so only call it from code that is already authorized.

#### Add your own cache module

Implement `Cache_Clearing\Cache_Module_Interface` (or extend `Cache_Clearing\Modules\
Abstract_Module`) and register it:

    ```
    add_action( 'cache_clearing_register_modules', function ( $manager ) { $manager->register_module( new My_Module( cache_clearing()->settings() ) ); } );
    ```

#### Hooks

 * `cache_clearing_capability` (filter) – capability required to use the plugin.
   Default `manage_options`.
 * `cache_clearing_register_modules` (action) – register cache modules.
 * `cache_clearing_integrations` (filter) – add or remove external integrations.
 * `cache_clearing_clear_all_modules` (filter) – module IDs included in Clear All.
 * `cache_clearing_before_clear` / `cache_clearing_after_clear` (actions) – run 
   code around a clear.
 * `cache_clearing_auto_clear_post_types` (filter) – post types whose changes trigger
   automatic clearing.
 * `cache_clearing_protected_transients` (filter) – transient names that are never
   deleted.

## Screenshots

[⌊Dashboard with Clear All Cache, cache status cards, Clear Selected, statistics
and recent activity.⌉⌊Dashboard with Clear All Cache, cache status cards, Clear 
Selected, statistics and recent activity.⌉[

Dashboard with Clear All Cache, cache status cards, Clear Selected, statistics and
recent activity.

[⌊Result summary after clearing: cleared, skipped and failed caches with details.⌉⌊
Result summary after clearing: cleared, skipped and failed caches with details.⌉[

Result summary after clearing: cleared, skipped and failed caches with details.

[⌊Cache environment scan.⌉⌊Cache environment scan.⌉[

Cache environment scan.

[⌊Activity log.⌉⌊Activity log.⌉[

Activity log.

[⌊Settings.⌉⌊Settings.⌉[

Settings.

[⌊Admin Bar quick menu and result notification on the front end.⌉⌊Admin Bar quick
menu and result notification on the front end.⌉[

Admin Bar quick menu and result notification on the front end.

## Installation

 1. In your WordPress dashboard go to **Plugins  Add New Plugin** and search for **
    HTL Clear All Cache**.
 2. Click **Install Now**, then **Activate**.
 3. Open **HTL Clear Cache** in the admin menu.

Manual installation: unzip the file and upload the `hash-tech-logic-cache-clearing`
folder to `wp-content/plugins/`, then activate it on the Plugins screen.

On multisite you can activate the plugin on individual sites or network-activate
it. Each site is set up the first time its dashboard is visited.

## FAQ

### Do I need another cache plugin?

No. It works on its own. Other cache plugins are optional and are only purged if
you turn on their integration.

### What does “Clear All Cache” clear exactly?

Every module that is available and safe on this site: the plugin cache, transients(
according to your setting), the persistent object cache if one is active and allowed,
browser cache-busting if you turned it on, and any integrations you enabled. Anything
that is not available is listed as “Skipped” with the reason.

### Why does the result say “Partial success”?

At least one cache could not be cleared completely. The result lists each cache 
with its message, for example a file that could not be deleted because of folder
permissions. The plugin never reports success when something failed.

### Why is the Object Cache “Not detected”?

Your site does not use a persistent object cache (an `object-cache.php` drop-in 
such as Redis Object Cache). Without one, WordPress keeps cached objects in memory
for a single page load only, so there is nothing to flush.

### Will flushing the object cache affect other sites?

It can. `wp_cache_flush()` clears the whole object cache. If other sites or apps
share the same Redis or Memcached database, their cached data is cleared too. On
multisite, flushing is disabled until a network administrator allows it under Settings
Advanced.

### Is clearing all transients safe?

Transients are temporary by design and WordPress rebuilds them when needed, so clearing
them is safe, but the next few page loads may be slightly slower. That is why the
default is “expired transients only”. The WP-Cron lock (`doing_cron`) is never deleted.

### Can it clear my visitors’ browser cache?

No website can delete files stored in a visitor’s browser. Instead, turn on browser
cache-busting under Settings  Advanced. Clearing it changes the version of your 
CSS and JavaScript URLs, so browsers download fresh copies.

### Does it clear my CDN or hosting cache?

Not in this version. The scanner detects Cloudflare, CloudFront, Fastly, Sucuri,
Bunny CDN, QUIC.cloud and Akamai when they are visible in response headers, and 
several managed hosts. Clear those caches from their own dashboard. CDN integrations
are planned.

### Which caches are cleared automatically?

Only the caches you tick under “Caches to clear automatically”. By default that 
is the plugin cache and transients (expired only), which are cheap to clear. You
can add the object cache or integrations, but flushing those after every change 
can slow your site down until the caches warm up again.

### Who can use the plugin?

Users with the `manage_options` capability (administrators). Developers can change
this with the `cache_clearing_capability` filter.

### What happens when I uninstall the plugin?

Deleting the plugin removes only its own data: its options (settings, log, statistics,
scan results, version, asset version), its short-lived notices and its own `wp-content/
cache/cache-clearing/` folder. On multisite this is done for every site. Nothing
else is touched. Deactivating the plugin keeps your settings and log.

## Reviews

![](https://secure.gravatar.com/avatar/1c53c923d86026ae61ae523c4c78c3cab508c1990f4e9e5293198e3b0eb90d0f?
s=60&d=retro&r=g)

### 󠀁[The activity log and statistics make this plugin stand out.](https://wordpress.org/support/topic/the-activity-log-and-statistics-make-this-plugin-stand-out/)󠁿

 [mukhilal](https://profiles.wordpress.org/mukhilal/) October 3, 2026

You can see when a cache action happened, what triggered it, the result, duration
and per-cache messages. This is particularly helpful when troubleshooting a WordPress
site where you need to know whether a cache actually cleared or not.

![](https://secure.gravatar.com/avatar/68a2d6d7dfd03ad2f1413ae3b675d686b0380393cb911adc00b9c6513b4bf901?
s=60&d=retro&r=g)

### 󠀁[A very clean and well-designed cache clearing plugin](https://wordpress.org/support/topic/a-very-clean-and-well-designed-cache-clearing-plugin/)󠁿

 [amareshchaudhary](https://profiles.wordpress.org/amareshchaudhary/) October 3,
2026

I really like that it clearly tells you what was cleared, what was unavailable, 
and what failed instead of simply showing a generic “cache cleared” message. The
one-click Clear All Cache feature is especially convenient.

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/hash-tech-logic-cache-clearing/reviews/)

## Contributors & Developers

“HTL Clear All Cache” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ hashtechlogic ](https://profiles.wordpress.org/hashtechlogic/)

[Translate “HTL Clear All Cache” into your language.](https://translate.wordpress.org/projects/wp-plugins/hash-tech-logic-cache-clearing)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/hash-tech-logic-cache-clearing/),
check out the [SVN repository](https://plugins.svn.wordpress.org/hash-tech-logic-cache-clearing/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/hash-tech-logic-cache-clearing/)
by [RSS](https://plugins.trac.wordpress.org/log/hash-tech-logic-cache-clearing/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.1

 * New name: HTL Clear All Cache (the admin menu is now called HTL Clear Cache).
 * Settings are registered once with `register_setting()`, type “array” and a sanitize
   callback that validates every field.

#### 1.0.0

 * First release: plugin cache, transients, object cache and optional browser cache-
   busting modules; ten opt-in cache plugin integrations; Clear All, individual 
   and Clear Selected actions; Admin Bar menu; environment scanner; automatic clearing;
   statistics; activity log; multisite support; uninstall cleanup.

## Meta

 *  Version **1.0.1**
 *  Last updated **9 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.1 or higher **
 *  Tested up to **7.1.2**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [cache](https://wordpress.org/plugins/tags/cache/)[clear cache](https://wordpress.org/plugins/tags/clear-cache/)
   [object cache](https://wordpress.org/plugins/tags/object-cache/)[purge cache](https://wordpress.org/plugins/tags/purge-cache/)
   [transients](https://wordpress.org/plugins/tags/transients/)
 *  [Advanced View](https://wordpress.org/plugins/hash-tech-logic-cache-clearing/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/hash-tech-logic-cache-clearing/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/hash-tech-logic-cache-clearing/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/hash-tech-logic-cache-clearing/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/hash-tech-logic-cache-clearing/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/hash-tech-logic-cache-clearing/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/hash-tech-logic-cache-clearing/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/hash-tech-logic-cache-clearing/reviews/)

## Contributors

 *   [ hashtechlogic ](https://profiles.wordpress.org/hashtechlogic/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/hash-tech-logic-cache-clearing/)