Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Release: Change Requests 2.1.9 Minor update available for module change_requests (2.1.9). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

This plugin automatically clears Drupal's caches whenever dependencies are updated. This helps prevent websites from breaking due to outdated cache data after extensions are modified. It is intended as a development dependency to guard against issues that might not be immediately apparent.

This is a tiny Composer plugin that...automatically clears Drupal's caches any time dependencies are updated. The hope is that this will help prevent sites from breaking suddenly due to installed extensions making changes that require a cache rebuild.

Of course, you can get around these kinds of problems by simply visiting update.php...but you have to know to do that, which you might not. If you're facing a WSOD due to stale cache data, you might be at, effectively, a dead end. And if you don't know how to use the command line, there's even less you can do.

So, although it's an inelegant sledgehammer approach, this plugin is intended to prevent that situation. Since clearing all caches can have a negative effect on performance, it's recommended that you add this plugin as a development dependency.

Automatic Cache Clear requires zero configuration. Here's how to install it:

composer config allow-plugins.drupal/auto_cache_clear true
composer require --dev drupal/auto_cache_clear

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Sep 2025
Latest release
11 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
1.x-dev Dev Sep 5, 2025