Home

>

Tools

>

Ghost

>

Releases

>

5.33.7

Ghost Release: 5.33.7

Tag Name: v5.33.7

Release Date: 2/7/2023

Ghost LogoGhost

Open-source publishing platform specifically designed for professional bloggers and publications. Focuses on clean, minimalist writing and publishing experience.

TL;DR

Ghost v5.33.7 introduces a performance optimization for email sending by implementing short-lived caching for email batch bodies. This enhancement reduces database queries and improves reliability when sending emails to multiple batches simultaneously, particularly benefiting publishers who send newsletters to large subscriber lists.

Highlight of the Release

    • Added short-lived caching mechanism for email batch bodies
    • Reduced database query load during multi-batch email sending
    • Improved reliability of email sending operations

Migration Guide

No migration steps are required for this release. The performance improvements are applied automatically when you upgrade to v5.33.7.

Upgrade Recommendations

This release is recommended for all Ghost users, especially those who regularly send newsletters to large subscriber lists. The performance improvements for email sending make this a worthwhile upgrade with no breaking changes or migration steps required.

To upgrade:

  1. Back up your Ghost installation
  2. Follow the standard Ghost update procedure for your installation method
  3. No configuration changes are needed after upgrading

Bug Fixes

Email Sending Reliability Fix

This release addresses an issue identified in Team#2522 where sending emails to multiple batches simultaneously could potentially be affected by database failures. By implementing caching for email batch bodies, Ghost now reduces its dependency on continuous database availability during the email sending process.

New Features

Short-lived Caching for Email Batch Bodies

Ghost now implements a caching mechanism for email batch bodies when sending to multiple batches within the same segment. Previously, the system would generate the email body separately for each batch, resulting in redundant database queries. With this new feature:

  • The email body is generated once per segment and cached
  • The cached version is reused for all batches in the same segment
  • Cache is automatically cleared after the email sending process completes
  • No manual cache management required by administrators

Security Updates

No security fixes were included in this release.

Performance Improvements

Email Sending Performance Optimization

The implementation of short-lived caching for email batch bodies brings significant performance improvements:

  • Reduced Database Queries: By reusing the same email body for multiple batches in the same segment, Ghost now makes fewer database calls during the email sending process
  • Lower Resource Utilization: The caching mechanism reduces CPU and memory usage when sending large newsletter campaigns
  • Improved Throughput: Email sending operations can now complete more efficiently, especially for newsletters with large subscriber bases
  • Automatic Garbage Collection: The cache is automatically cleared after use, ensuring no memory leaks or resource waste

Impact Summary

Ghost v5.33.7 focuses on improving the performance and reliability of email sending operations. By implementing short-lived caching for email batch bodies, this release reduces database load and makes the newsletter sending process more resilient against potential database failures.

This change is particularly beneficial for publishers with large subscriber lists who send regular newsletters, as it optimizes resource usage during email campaigns and reduces the risk of sending failures. The implementation is completely transparent to users, requiring no configuration changes or special setup.

While this is a minor release with a focused scope, the performance optimization addresses a specific pain point in email delivery reliability, making it a valuable upgrade for all Ghost users who utilize the newsletter functionality.

Full Release Notes

This release contains fixes for minor bugs and issues reported by Ghost users.


View the changelog for full details: v5.33.6...v5.33.7

🪄 Love open source? We're hiring JavaScript Engineers to work on Ghost full-time

Statistics:

File Changed6
Line Additions174
Line Deletions12
Line Changes186
Total Commits2

User Affected:

  • Improved reliability when sending emails to large subscriber lists
  • Reduced chance of email sending failures due to database issues
  • Better performance when sending the same email to multiple batches

Contributors:

SimonBackxgithub-actions[bot]