Catalogue / stackoverflow-2019-local-cache-bypass

An inverted TTL check after a refactor stopped Stack Overflow caching most Redis values in local server memory

Stack Overflow. Two-layer local and Redis cache.

Organisation
Stack Overflow
Evidence
Incident report
Source
Stack Overflow: How We Do App Caching - 2019 Edition

Nick Craver's blog, published 2019-08-06 (An incident recalled in a 2019 post; it happened earlier and the post gives no exact date for it. The saved source is this incident's section only.)

Records

Failure#f1

A refactor's inverted TTL check stopped most keys being cached in local server memory, unnoticed for hours

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.