- Caching
- Incident response
A clean database can still serve the old page
After a cleanup, an alert said the spam was back. The cache was still serving yesterday’s page.
Mohammad Kazim · · 1 min read

I had removed hidden spam links from a site’s database and rebuilt its homepage. Soon after, an alert reported the spam again. The database was still clean.
Compare the source with what visitors get
The page cache had stored the infected page and kept serving it for hours. Checking the database against the live HTML separated a stale cache from a live infection.
- Purge every cache layer after the data changes.
- Verify the live response, not only the database.
- Treat invalidation as part of the change, not as a step to remember later.
