Caching for news sites: why breaking news breaks cheap setups
Here’s the cruel irony of running a news site: the moment you’ve worked for — a story everyone wants to read — is the exact moment a weak setup collapses. Thousands of people land on the same page in the same minute, the server tries to build that page thousands of times at once, and the site that was fine all month goes down on its biggest day.
What “no caching” actually means
By default, many sites rebuild each page from scratch for every visitor: run the code, query the database, assemble the HTML, send it, throw it away, repeat. For one reader that’s nothing. For a crowd arriving at once, it’s the same expensive work repeated thousands of times for a page that didn’t change between them.
Page caching: build it once, serve it to everyone
Caching flips the model. The page is built once and the finished result is kept ready, so the next thousand readers get the stored copy instantly instead of making the server rebuild it. Suddenly a traffic spike is cheap: you’re handing out the same ready-made page, not doing the same work over and over.
The CDN layer
A CDN takes it further by keeping copies close to your readers, on servers around the world, and serving your images, styles and scripts from the one nearest each visitor. Your origin server does less, pages arrive faster, and a surge of traffic is spread across a network built for exactly that.
The catch nobody mentions: freshness
Here’s where news is special. Most caching advice assumes pages rarely change. News changes constantly — headlines update, stories get corrected, new articles push in every few minutes. Cache too aggressively and readers see stale news; cache too timidly and you’re back to rebuilding everything. The real work is getting both at once: pages served from cache and updated the moment the newsroom changes something. That balance is the whole game, and it’s what separates a setup that merely “has caching” from one built for a live newsroom.
How we approach it
We treat caching and delivery as part of the architecture from day one, not a plugin added at the end — tuned so a site stays fast under a spike and still shows breaking news the instant it’s published. It’s a big part of why the news sites we run stay up on the days that take other sites down.