Jason McCreary demonstrates how to dramatically improve Laravel application performance using Cloudflare page caching, using Laravel News as a real-world case study. The discussion reveals that many Laravel apps sit behind Cloudflare but never benefit from page caching due to framework defaults like sessions and middleware. By identifying static pages (like homepages that only change when new content is published), replacing non-reactive Livewire components with cacheable Blade components, and properly configuring Cloudflare's free tier features, applications can see response times drop from hundreds of milliseconds to 40ms while reducing infrastructure costs. The key insight is that large portions of Laravel applications are effectively static and can be cached at the CDN level without major architectural changes.

23m read timeFrom laravel-news.com
Post cover image
Table of contents
# Why Laravel Apps Often Miss Out on Caching# The Homepage Problem (And Opportunity)# Livewire, Blade, and Static Rendering# Cloudflare’s Free Tier Is Often Enough# Performance Gains and Cost Savings# A Practical Path to Faster Laravel Apps# Check out JMac's products:# Episode Transcript
35.8K Impressions