Skip to content

fix(bolt): trim the history to its configured size - #1401

Merged
dunglas merged 2 commits into
mainfrom
fix/bolt-cleanup
Sep 24, 2026
Merged

dunglas merged 2 commits into
mainfrom
fix/bolt-cleanup

Conversation

@dunglas

@dunglas dunglas commented Sep 24, 2026

Copy link
Copy Markdown
Owner

The size directive had no effect in the Caddy module, and the cleanup pass itself removed only half of the expired entries.

Changes

  • The cleanup loop re-seeks the cursor after each delete: deleting through the bucket while iterating skipped every other key.
  • The Caddy module applies the default cleanup_frequency (0.3) when it is not set, instead of passing 0, which never trims.

Deleting through the bucket while iterating its cursor skipped every other
key, so the history grew past the configured size.
Without cleanup_frequency the module passed 0, which never trims the history,
so the size directive had no effect.
@dunglas
dunglas merged commit 3dbfc72 into main Sep 24, 2026
47 checks passed
@dunglas
dunglas deleted the fix/bolt-cleanup branch September 24, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant