Now Available

Improved CDN Cache Management

Today, I've rolled out version 2.0.0 of Magic Pages' Bunny.net CDN integration, focusing on making cache invalidation more reliable and efficient. The integration itself is a middleware that monitors your Ghost sites on Magic Pages (but since it's open source, anyone can use it 😉) and notifies Bunny.net about changes in your content. Bunny.net will then delete the cached copy and serve the next visitor a fresh version rather than a stale one.

This update addresses reports from users who occasionally needed multiple reloads to see their latest content and tackles several other improvements at the same time.

What's Changed?

🚀 Faster Updates

The new version processes cache updates much more efficiently. Instead of handling updates one by one, it can now process multiple updates simultaneously. Great for bulk updates (which was one of the bottlenecks)!

🔄 Better Reliability

I've added an automatic retry system. If an update doesn't go through the first time (which can happen for various reasons like network hiccups), the system will automatically try again rather than giving up.

📊 Better Monitoring

The system now provides more detailed information about what's happening. This helps me spot and fix potential issues before they affect your site.

A Note About Cache Updates

Even with these improvements, it's important to understand that cache updates aren't instant. When you publish or update content:

  1. Your Ghost site tells the Magic Pages servers "Hey, there's new content!"
  2. The servers then immediately tell Bunny.net "Clear the old version!"
  3. Bunny.net then needs to tell all their servers worldwide about this change.

With the improvements mentioned above, I have timed updates on several different Ghost sites. On average, the cache invalidation now takes around 2-3 seconds 🎉

Questions or feedback?

Let us know what you think about this new feature in the comments below!

Customer Stories

Built by Ghost publishers like you

From personal blogs to global publications, see what others are building with Magic Pages.

Screenshot of Ellie Mathieson's website

Ellie Mathieson

Digital Storefront
Screenshot of Big Idea Bible

Big Idea Bible

Personal Blog
Screenshot of Bento

Bento

Ghost Theme