Now Available

Improved CDN Cache Management

• Jannis Fedoruk-Betschki

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 🎉

This feature is now available!

If you're already a Magic Pages customer, you can access this feature right away. If you're not yet using Magic Pages, start your free trial today to try it out.

Questions or feedback?

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

Customer Showcase

Websites powered by Magic Pages

See what real publishers have built with Ghost CMS and Magic Pages hosting.

Start Your 14-Day Free Trial

No credit card required • Set up in minutes