GibsonClose

How we made Weekly Wildcat’s deployments faster

Writing, 18 Oct 2026674 words

a blurry photo of a bird flying in the air

Photo by Clément Rémond on Unsplash

Around three months ago, we switched Weekly Wildcat’s site from an old, slow, traditional WordPress install to a new, hybrid Next.js setup.

However, we began noticing that although this new setup delivered massive performance improvements compared to our old site, it still had many shortcomings, including the fact that Next.js shipped an insane amount of JavaScript for each page.

So, we began researching alternative frameworks that would meet our needs better, and found Astro. After a quick search into it, I knew that it was going to work.

Over the next few days in early September, I began planning the migration, and eventually on September 7, I merged the final pull request to complete the transition.

The performance gains were great. Our local cold build time dropped from around 50 seconds to just 35 seconds, and our site size dropped over 50%.

Obviously, that’s only around a 35% performance gain, but when minutes matter (and Cloudflare only gives you so many) it all adds up.

The linked JavaScript on the homepage and article pages dropped by roughly 99%, down to below 10 KiB. And many pages now even have no JS at all.

However, I quickly discovered another bottleneck that had nothing to do with the framework at all; acquiring the content from our WordPress CMS.

In one instance, our new Astro build took around 35 seconds, but almost 27 seconds of that build was just spent aquirring data from WordPress. And in many cases, the server would get overwhelmed with requests and spike to over 775% CPU usage, bringing the entire CMS to a halt.

So, I worked to replace those repeated REST fetches with pre-generated snapshots instead. Basically, WordPress now prepares a versioned snapshot of the public content ahead of a build, and Astro can simply download that.

We also added incremental builds, so changes to one article didn’t automatically merit a complete rebuild of every page. How ever they get a little complicated because changing an article doesn’t just affect that article. It might also change a category page, an author’s profile, or the related stories shown on other articles.

But by tracking those dependencies, we can avoid rebuilding pages that aren’t affected. In one test, an unchanged build reused 52 of our 70 routes instead of rendering them again. Even when we edited an article, 36 routes could still be reused.

I had also realized, around this time, that we really didn’t have time to keep up with our sports database, and decided to archive the records into static pages for public reference instead. MaxPreps can keep that job.

But this actually revealed another pretty big inefficiency. We were generating hundreds of individual HTML pages that did nothing except redirect visitors from old sports URLs to the new archive pages.

So, we moved those redirects to Cloudflare, where they could be handled as regular HTTP 301 redirects instead, reducing the number of pages being generated in a production-content build from around 400 to just 65.

Before all of this, our Cloudflare deployments usually took over three minutes. Now, I’ve seen them finish in around a minute and 12 seconds.

And there’s still more to optimize. Downloading and processing images remains one of the biggest sources of variability, and even with incremental builds, some parts of the site still need to be regenerated every time.

Looking back, I think one of the biggest things I’ve learned from all of this is that optimization isn’t necessarily about making everything more complicated or finding a faster way to do the same work.

A lot of our improvements came from simply removing work we didn’t need to be doing in the first place.

There’s still plenty I want to improve, and I’m sure I’ll find another bottleneck sooner or later. But for now, I’m pretty happy with how far we’ve gotten, especially considering we were still running everything through a $7/year Christmas special IONOS plan.x

  1. Soccer2025–2026
  2. How we made Weekly Wildcat’s deployments faster18 Oct 2026
    How we made Weekly Wildcat’s deployments faster

    Around three months ago, we switched Weekly Wildcat’s site from an old, slow, traditional WordPress install to a new, hybrid Next.js setup.

  3. Tilecast2026
  4. Running our first quizbowl tournament13 Sept 2026
    Running our first quizbowl tournament

    Round 1 had been going maybe five minutes when people started coming out into the hallway to tell HQ that the questions weren’t bouncing back.

  5. My website got owned19 Aug 2026
    My website got owned

    Yesterday, I opened my website to see a very unwelcome surprise.

  6. qbsheet2026
    qbsheet

    A simpler way to score quizbowl tournaments.

  7. Bringing our school’s ‘dead’ TVs back to life20 Jul 2026
    Bringing our school’s ‘dead’ TVs back to life

    There are TVs at my school that have been off for as long as I’ve been a student there.

  8. Why (and how) we rebuilt Weekly Wildcat’s website from scratch16 Jul 2026
    Why (and how) we rebuilt Weekly Wildcat’s website from scratch

    Weekly Wildcat launched its first website back in January 2026.

  9. The tech behind the 2026 miss ems pageant16 May 2026
    The tech behind the 2026 miss ems pageant

    We had no real production budget, just a few hours of tech practice, and a mix of borrowed, existing, and improvised equipment for our use.