Drupal is a registered trademark of Dries Buytaert
Views Bootstrap 5.5.2 Minor update available for module views_bootstrap (5.5.2). oEmbed Providers 3.0.0 Major update available for module oembed_providers (3.0.0). Byte (theme) 1.0.3 Minor update available for theme byte_theme (1.0.3). Token Content Access 3.1.3 Minor update available for module tca (3.1.3). Emulsify 7.2.1 Minor update available for theme emulsify (7.2.1). Opensolr Search 4.1.0 Minor update available for module opensolr_search (4.1.0). AG-UI 1.0.2 Minor update available for module agui (1.0.2). FileGate 1.5.0 Minor update available for module file_gate (1.5.0). oEmbed Providers 2.2.4 Module oembed_providers updated after 7 months of inactivity (2.2.4). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module helps manage the Drupal cache invalidation queue by dynamically adjusting how many items are processed per cron run. It increases the processing limit when the queue is large and decreases it when the queue is smaller, preventing the queue from becoming overwhelmed. Users can configure the minimum, maximum, and a "high-watermark" for the queue size.

Purge processes its queue in fixed-size chunks per cron run (often 100 items), set by the active purger. When cache invalidations are produced faster than they are processed — or when cron is delayed — the queue grows and never catches up.

Purge Adaptive Capacity scales the number of items processed per cron run based on the current queue size: more items when the backlog grows toward a configurable high-watermark, fewer when it shrinks (never below a configurable minimum). This keeps the queue under control without permanently over-processing.

Features

  • Scales the per-cron processing limit linearly with the queue size.
  • Configurable minimum (hard floor of 100), maximum, and queue high-watermark.
  • Purger-agnostic: decorates Purge's capacity tracker, so it works with any purger.
  • Respects Purge's execution-time safeguards — the limit acts as an upper bound.
  • Can be disabled to fall back to the standard purger capacity.

Post-Installation

After enabling the module, go to Administration » Configuration » Development » Purge adaptive capacity (/admin/config/development/performance/purge-adaptive-capacity) and set the minimum items, maximum items, and queue high-watermark. The scaling formula is: limit = min_items + (max_items - min_items) * min(1, queue_size / queue_high_watermark).

Additional Requirements

Requires the Purge module.

Similar projects

Unlike static configuration of a purger's capacity, this module adjusts the limit dynamically at runtime based on the live queue size.

Activity

Total releases
3
First release
Jun 2026
Latest release
1 month ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.0.1 Stable Jun 22, 2026
1.0.x-dev Dev Jun 16, 2026
1.0.0 Stable Jun 16, 2026