Home

>

Tools

>

Ghost

>

Releases

>

5.33.5

Ghost Release: 5.33.5

Tag Name: v5.33.5

Release Date: 2/2/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.5 delivers a significant performance optimization for link redirects handling. This update reduces unnecessary database queries by implementing an early return mechanism for URLs that don't match the redirect pattern, resulting in improved server performance and reduced database load. This is especially beneficial for high-traffic Ghost sites.

Highlight of the Release

    • Optimized link redirects handling to reduce unnecessary database queries
    • Implemented early return for URLs that don't match the common redirect pattern
    • Reduced database load for every frontend request

Migration Guide

No migration steps are required for this release. The performance optimization is automatically applied when updating to v5.33.5.

Upgrade Recommendations

This update is recommended for all Ghost users, especially those with high-traffic sites or sites that make extensive use of redirects. The performance optimization will reduce unnecessary database load and improve server response times.

The update is backward compatible and requires no configuration changes. You can upgrade using your standard update process.

Bug Fixes

This release addresses a performance issue with link redirects handling:

  • Fixed inefficient redirect handling that was querying the database on every frontend request
  • Implemented an early return mechanism for URLs that don't start with the common "r/" prefix used for redirects

New Features

No new features were introduced in this release.

Security Updates

No security fixes were included in this release.

Performance Improvements

Optimized Link Redirects Handling

The link redirects handler has been significantly optimized in this release:

  • Previously, the system was querying the database on every single frontend request, regardless of whether the URL was likely to be a redirect
  • Now, the code checks if the incoming URL starts with the common "r/" prefix before proceeding with database operations
  • This early return mechanism prevents unnecessary database queries for the vast majority of requests that aren't redirects
  • The optimization reduces database load and improves overall site performance, especially for high-traffic Ghost installations

This change addresses the issue reported in TryGhost/Toolbox#515.

Impact Summary

Ghost v5.33.5 focuses on performance optimization by addressing an inefficiency in how link redirects are handled. Previously, the system was querying the database on every frontend request to check for potential redirects, creating unnecessary database load.

The optimization introduces a simple but effective early return mechanism that checks if the URL starts with the common "r/" prefix used for redirects before performing any database operations. This significantly reduces the number of database queries for standard page requests.

For Ghost sites with high traffic volumes, this change will result in reduced database load, improved server performance, and potentially faster page load times. The optimization is particularly impactful because it affects every frontend request to a Ghost site.

This update demonstrates Ghost's commitment to performance optimization and addressing issues that affect the platform's efficiency at scale.

Full Release Notes

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


View the changelog for full details: v5.33.4...v5.33.5

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

Statistics:

File Changed5
Line Additions51
Line Deletions8
Line Changes59
Total Commits2

User Affected:

  • Will experience reduced server load and improved performance
  • No configuration changes required to benefit from the optimization

Contributors:

nazgithub-actions[bot]