Home

>

Tools

>

Ghost

>

Releases

>

5.79.6

Ghost Release: 5.79.6

Tag Name: v5.79.6

Release Date: 2/26/2024

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.79.6: Cache Invalidation Fix for Admin API Slugs Endpoint

This minor release fixes an issue with the Admin API's slugs endpoint that was incorrectly triggering full-site cache invalidation. The fix prevents unnecessary cache clearing when checking slug availability, improving performance for sites using hosting services with caching.

Highlight of the Release

    • Fixed incorrect cache invalidation headers for the Admin API slugs endpoint
    • Prevented unnecessary full-site cache clearing when checking slug availability
    • Improved performance for sites using hosting services with caching

Migration Guide

No migration steps are required for this release. The fix is automatically applied when updating to v5.79.6.

Upgrade Recommendations

This release is recommended for all Ghost users, especially those using hosting services with caching mechanisms. The update improves performance by preventing unnecessary cache invalidation when checking slug availability.

The upgrade is low-risk as it only modifies response headers for a specific Admin API endpoint and doesn't change any core functionality or database structures.

Bug Fixes

Cache Invalidation Header Fix

Fixed an issue with the Admin API GET /slugs/{type}/{slug}/ endpoint that was incorrectly sending full-site cache invalidation headers. This endpoint is used by the Admin interface to check when a potential slug needs de-duplication by adding a -{x} suffix, most commonly when setting a draft post title.

The endpoint was returning cache invalidation headers despite being a read-only operation that makes no changes to the site. This could cause hosting services to unnecessarily clear their site caches, negatively impacting performance.

The fix removes these cache invalidation headers from the response, ensuring that read-only operations don't trigger cache clearing.

New Features

No new features were introduced in this release.

Security Updates

No security fixes were included in this release.

Performance Improvements

Reduced Unnecessary Cache Invalidation

This release improves performance by preventing unnecessary cache invalidation when checking slug availability. Previously, the Admin API's slugs endpoint would trigger full-site cache invalidation despite being a read-only operation.

For Ghost sites using hosting services with caching mechanisms, this change will:

  • Prevent unnecessary cache clearing
  • Maintain better cache hit rates
  • Improve overall site performance
  • Reduce server load from redundant cache rebuilds

Impact Summary

This release addresses a performance issue related to cache invalidation in the Admin API. By fixing the incorrect cache invalidation headers in the slugs endpoint, Ghost sites will experience fewer unnecessary cache clears, resulting in better performance and resource utilization.

The impact is most significant for:

  1. Sites with high editorial activity where new drafts are frequently created
  2. Installations using hosting services with caching mechanisms
  3. Larger Ghost sites where cache rebuilding is resource-intensive

While this is a minor bugfix release, the performance improvement could be substantial for busy sites where the slugs endpoint is frequently accessed during content creation workflows.

Full Release Notes

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


View the changelog for full details: v5.79.5...v5.79.6

Statistics:

File Changed4
Line Additions4
Line Deletions4
Line Changes8
Total Commits2

User Affected:

  • Improved site performance due to prevention of unnecessary cache invalidation
  • More efficient slug checking when creating or editing content

Contributors:

kevinansfieldgithub-actions[bot]