Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Charts 5.2.4 Minor update available for module charts (5.2.4). Release: Tagify 2.0.3 Minor update available for module tagify (2.0.3). Release: Tagify 1.2.54 Minor update available for module tagify (1.2.54). Release: ECA: Event - Condition - Action 3.1.8 Minor update available for module eca (3.1.8). Release: GoogleTag Manager 2.0.5 Minor update available for module gtm (2.0.5). Release: GoogleTag Manager 2.0.4 Minor update available for module gtm (2.0.4). Release: X-Frame-Options Allow-From webvisor.com 2.0.4 Minor update available for module xframe_allow_webvisor (2.0.4). Release: Commerce ML Starter 2.0.5 Minor update available for module cmlstarter (2.0.5). Usage Milestone: Easy Email Module easy_email crossed 10,000 active installs. Security Coverage: Menu Link By Default Module menu_link_by_default now has official Drupal security advisory coverage.

Purge Adaptive Capacity

No security coverage Drupal 10–11

Part of the Purge ecosystem · 14 projects

View on drupal.org

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.

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Jun 2026
Latest release
2 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

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