cache_tags_invalidator
No security coverage
Cache Tags Invalidator provides a safe and targeted way to invalidate cache in Drupal by using cache tags only, instead of clearing the entire cache.
On large or highly cached sites (for example, sites using Redis, reverse proxies, or multiple cache layers), performing a full cache rebuild can be risky. In some cases, clearing all cache may:
- Invalidate the entire Redis cache for Drupal.
- Take longer than the expected execution time.
- Cause timeout errors or temporary performance degradation.
- Impact active users while cache is being rebuilt.
This module avoids those issues by allowing administrators to invalidate only the cache tags that are actually needed, leaving the rest of the cache intact.
Features
- Invalidate specific cache tags without running a full cache rebuild.
- Helps prevent Redis cache flushes caused by full cache clears.
- Reduces execution time and avoids timeout-related errors.
- Improves stability and performance on large or high-traffic sites.
- Simple administrative interface under the Development configuration section.
- Access controlled by a dedicated permission.
- Optional cooldown to prevent accidental or excessive invalidations.
Installation
- Download and enable the module as usual.
- Grant the Invalidate cache tags permission to the appropriate roles.
- Navigate to Administration » Configuration » Development » Invalidate cache tags.
- Enter one or more cache tags and confirm the action.
Additional Requirements
This module has no additional requirements beyond Drupal core.
Recommended modules/libraries
No additional modules are required. This module is designed to work with Drupal core caching and integrates naturally with setups using Redis or other cache backends.