A Removed Feature Came Back and I Blamed the Cache

February 12, 2026

Part of The Great 404 Debugging Saga. Can be read standalone.

The Payment Button

A few days into what was already a frustrating debugging marathon, I got feedback from a user: "The payment button is back on the website."

This was a feature we had removed months ago. Completely deleted from the codebase. Not behind a feature flag, not commented out β€” gone. And yet there it was, live on production, cheerfully offering to take people's money.

Now, at this point I'd already spent days wrestling with caching issues. I'd just fixed a PWA service worker that was intercepting API requests. I'd purged Cloudflare. I'd added Cache-Control: no-store headers. My brain was deep in "everything is a cache problem" mode.

So when a deleted feature reappeared, my immediate reaction was: "Must be cached somewhere. The CDN is serving an old build. It'll clear out eventually."

I didn't investigate. I just mentally filed it under "more caching nonsense" and moved on to the next fire.

What I Should Have Thought

If something that was deleted from your codebase months ago shows up live on production, there are really only two explanations:

  1. Some cache, somewhere, has been holding onto a months-old response without expiring
  2. Something is actively serving the old code

Option 1 is theoretically possible but practically unlikely. CDN caches expire. Browser caches get cleared. A months-old cached frontend surviving through multiple deployments, cache purges, and code changes would be extraordinary.

Option 2 is boring and obvious. And it was the correct answer.

The Zombie Containers

Our setup uses Dokploy for deployment. Months earlier, we'd reorganized the project β€” split a monolithic deployment (khaaz1-*) into separate frontend and backend services. The old khaaz1 service was stopped in Dokploy's UI. Job done, or so we thought.

What we didn't know: "stopped" in Dokploy doesn't disable auto-deploy. When the VPS was restarted during the debugging saga (trying to reset Traefik's routing behavior), Dokploy's boot sequence saw the auto-deploy flag on the old khaaz1 service and dutifully spun it back up. The old containers came to life with their original configuration β€” including explicit host port bindings and restart: always.

So now two sets of containers were running for every service. The old ones from December 2025 had claimed the host ports. The new ones were routing through Traefik internally. All direct traffic went to the old binary.

The payment button wasn't cached. It was being served live, right now, by a 2-month-old container that had quietly risen from the dead.

The Real Problem: Confirmation Bias

Here's what gets me about this. The payment button was the single clearest signal that old code was actively serving traffic. Not cached β€” serving. If I'd spent 5 minutes investigating it instead of dismissing it, I'd have pulled the thread that led straight to the root cause.

But I'd already found three cache-related bugs that week. The PWA was caching API responses. Cloudflare was caching 404s. The browser was caching stale preflights. When your mental model is "everything is a caching problem," every new symptom automatically gets sorted into that bucket. A deleted feature is back? Cache. API returning old data? Cache. Deployment not taking effect? Cache.

It's textbook confirmation bias. And the cruelest part is that each individual cache diagnosis was correct β€” there really were three layers of caching issues. The pattern was real. But the fourth symptom didn't fit the pattern, and I forced it to fit anyway because I'd stopped questioning the model.

The docker ps Moment

Days later β€” days β€” I finally ran docker ps on the production server and saw something like this:

CONTAINER ID   IMAGE                              CREATED        STATUS       PORTS
f922c7fb4aaf   gongkar-khaaz1-gongkard            2 months ago   Up 43 hours  0.0.0.0:8080->8080/tcp
cf6294a576f2   gongkar-backend-c4ggwa-gongkard     2 hours ago    Up 2 hours

Two containers for the same backend. The old one, created 2 months ago, bound to port 8080. The new one, created 2 hours ago, with no port binding at all.

Every deployment, every fix, every architectural rewrite I'd done over the past week went into that bottom container. The one with no port binding. The one that no traffic ever reached.

The old container on top? That's where the payment button was coming from. That's where the 404s on new routes were coming from. That's where all of it was coming from.

docker rm -f gongkar-khaaz1-gongkard-1

Done. Everything worked.

The Lesson

When deleted code reappears in production, don't blame the cache. Something is serving old code. It might be an old container, an old build artifact, a stale deployment that didn't get torn down β€” but it's not a cache. Caches expire. Caches get purged. A feature that's been removed from the codebase for months and suddenly shows up isn't stale data hanging around in a CDN edge node. It's a live process running old code.

And if you find yourself explaining away symptoms with a theory you've already committed to β€” "it's probably just another caching issue" β€” that's the moment to stop and ask whether the theory still holds. Three cache bugs in a row doesn't mean the fourth one is also a cache bug. Sometimes the fourth one is a zombie container, and the only reason you didn't see it sooner is because you stopped looking.

The strongest debugging clue in this entire 8-day saga was a payment button. And I ignored it.

Β© 2026 borui. All rights reserved. This content may be freely reproduced, displayed, modified, or distributed with proper attribution to borui and a link to the article: borui (2026-02-12). A Removed Feature Came Back and I Blamed the Cache. https://caiborui.com/blog/2026-02-12-en-removed-feature-came-back-blamed-cache

@misc{borui2026-054649aa,
  author = {borui},
  title = {{A Removed Feature Came Back and I Blamed the Cache}},
  year = {2026},
  publisher = {borui's blog},
  url = {https://caiborui.com/blog/2026-02-12-en-removed-feature-came-back-blamed-cache}
}