This module adds a JavaScript confirmation prompt before clearing caches, preventing accidental cache flushes on production sites.
A simple extension to the Admin Toolbar Extra Tools module that's part of the Admin Toolbar project that shows a javascript confirmation dialog when clicking links relating to flushing caches, but only when on a production site.
Post-Installation
This should 'just work' but if the module needs help identifying your site's production and non-production environments, then have a look at the code in admin_toolbar_tools_confirm_is_likely_production_site and maybe think about setting the admin_toolbar_tools_confirm.production_site setting in settings.php.
Project genesis
The idea for this module came from this issue: #3567243: Feature idea: optional confirmation form for flushing caches
Ask your assistant about Admin Toolbar Extra Tools Confirmations
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- Admin Toolbar admin_toolbar_tools
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0 | Stable | 10–11 | Feb 11, 2026 |