Skip to content

fix: cache, pool sizing, content-type validation, and retention - #595

Merged
ritaifeoluwa merged 4 commits into
SmartDropLabs:mainfrom
auraroom:fix-cache-pool-content-type-retention
Oct 19, 2026
Merged

ritaifeoluwa merged 4 commits into
SmartDropLabs:mainfrom
auraroom:fix-cache-pool-content-type-retention

Conversation

@auraroom

Copy link
Copy Markdown
Contributor

What

Fixes cache invalidation on bulk updates, adds configurable connection pool sizing, validates Content-Type headers, and implements data retention policies.

Issues Resolved

Closes #564
Closes #565
Closes #566
Closes #567

Changes

#564 - Cache invalidation on bulk updates

Added delMany() helper to cache service for efficient bulk cache invalidation.

#565 - No connection pool sizing

Made database connection pool min/max sizes configurable via DB_POOL_MIN and DB_POOL_MAX environment variables.

#566 - No content-type validation

Added Content-Type validation middleware to reject requests with unsupported MIME types.

#567 - Add data retention policies

Implemented configurable data retention for delivery logs and sessions via DELIVERY_LOG_RETENTION_DAYS and SESSION_RETENTION_DAYS.

Add DB_POOL_MIN and DB_POOL_MAX environment variables to allow
runtime configuration of the connection pool min/max sizes.

Resolves SmartDropLabs#565
Validate Content-Type headers on request bodies to prevent MIME confusion
attacks. Rejects requests with unsupported Content-Type values.

Resolves SmartDropLabs#566
Add delMany() function to cache service for efficient bulk cache
invalidation on batch updates. Respects concurrency limits via semaphore.

Resolves SmartDropLabs#564
Add configurable data retention policies for deliveries and sessions.
Allows automatic cleanup of old records via DELIVERY_LOG_RETENTION_DAYS
and SESSION_RETENTION_DAYS environment variables.

Resolves SmartDropLabs#567
@drips-wave

drips-wave Bot commented Oct 19, 2026

Copy link
Copy Markdown

@auraroom Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@ritaifeoluwa
ritaifeoluwa merged commit 7af30b2 into SmartDropLabs:main Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants