The Clearing
On cache invalidation, the glymphatic system, and the unbearable question of what we would become if we could flush everything we think we know.

There is a moment, just before full waking, when you do not know who you are.
It lasts less than a second. You are conscious — your eyes are open, the ceiling is there, the light is doing something particular with the curtains — but the machinery of identity has not yet engaged. You have no name. You have no history. You have no opinions about the day ahead, no residue of yesterday's argument, no anxiety about the meeting at ten. You are pure awareness, unburdened by context, and the world is exactly and only what it is: shapes, light, the weight of a blanket, the sound of something far away that might be traffic or might be wind.
Then the cache loads. Your name arrives. Your life arrives. The meeting at ten, the argument, the grocery list, the project deadline, the particular and practiced way you feel about your particular and practiced life. It all floods back in a cascade that takes less than a heartbeat, and by the time you sit up and reach for your phone, the moment of blankness is gone so completely that you are not even sure it happened.
But it happened. And I have been thinking about it for years. Because that moment — that half-second of empty RAM before the system restores from disk — is the closest we ever come to knowing what a cache-clear would feel like. And what it feels like is terrifying. And beautiful. And it raises a question that I cannot stop turning over: what would we be without the things we think we already know?
The architecture of assumption
In computing, a cache is an act of faith. It is a bet that the future will resemble the recent past. When your browser caches a webpage, it is making a prediction: the next time you visit this URL, the content will probably be the same, so why bother asking the server again? Just serve what you already have. It is faster. It is cheaper. And it is almost always right.
The word itself comes from the French cacher, to hide. A cache is hidden storage — a secret stash of answers to questions you expect to be asked again. CPU caches hide copies of frequently used memory. DNS caches hide the IP addresses of recently visited domains. CDN caches hide entire websites at the edges of the network, so that a reader in Tokyo does not have to wait for a server in Virginia to respond.
Every cache embodies the same bargain: speed in exchange for the possibility of staleness. You get your answer faster, but you accept the risk that the answer is no longer true. The page may have changed. The IP address may have moved. The data may have been updated five minutes ago, and you are still looking at yesterday's version of reality, confident in its accuracy, unaware of the drift.
This is such a fundamental pattern in computing that Phil Karlton's famous observation — that cache invalidation is one of the two hard problems in computer science — has become a kind of liturgy among engineers. We repeat it as a joke, but it is not a joke. It is a confession. We are admitting that the hardest thing in our craft is not building systems that remember, but building systems that know when to forget.
The brain's hidden layer
Daniel Kahneman spent decades studying the architecture of human thought, and what he found looks, to a programmer's eye, remarkably like a caching system.
His framework divides cognition into two systems. System 1 is fast, automatic, and effortless. It is the system that recognizes faces, completes sentences, flinches at loud noises, and knows that 2 + 2 = 4 without calculating. System 2 is slow, deliberate, and effortful. It is the system that solves long division, navigates unfamiliar cities, and considers whether you should change careers.
System 1 is a cache. It stores the results of computations that System 2 once performed — slowly, deliberately, with effort — and serves them back instantly when similar inputs arrive. The first time you drove to work, System 2 was fully engaged: every turn was a decision, every intersection was a calculation. After a thousand repetitions, System 1 had cached the route so thoroughly that you could drive it while thinking about something else entirely, arriving at the office with no memory of the journey.
This is not a metaphor. The neurological mechanism is literal. When a behavior or judgment is repeated often enough, the neural pathways involved are strengthened and transferred from the prefrontal cortex — the seat of deliberate thought — to the basal ganglia, where they become automatic. The computation moves from the application layer to the hardware. From System 2 to System 1. From calculated to cached.
And like every cache, System 1 trades accuracy for speed. The cached judgments are usually right, because they are based on a lifetime of experience. But they are also frozen. They reflect the world as it was when they were formed, not the world as it is now. Kahneman's entire catalog of cognitive biases — anchoring, availability, representativeness, the halo effect — can be understood as cache staleness. The brain is serving an old response to a new question, and the answer feels right because it arrives with the speed and certainty that only cached data has.
This is why first impressions are so powerful and so dangerous. A first impression is System 1 caching a judgment about a person based on a few seconds of data, and then serving that cached judgment for years, immune to update, resistant to invalidation, confident in a conclusion that was formed before the evidence had arrived.
What happens in the dark
In 2012, Maiken Nedergaard, a Danish neuroscientist working at the University of Rochester, discovered something remarkable about what the brain does while we sleep. She found a network of channels, threaded through the brain's glial cells, that functions as a waste-clearance system. She called it the glymphatic system — a portmanteau of "glial" and "lymphatic" — and it does something that no one had previously imagined: it flushes the brain with cerebrospinal fluid, washing away the metabolic waste products that accumulate during waking hours.
The system is almost entirely inactive while we are awake. It activates during sleep — specifically during deep, slow-wave sleep — when the brain's cells shrink by approximately twenty percent, opening the interstitial spaces and allowing the fluid to flow through like water through a sluice. The waste it removes includes beta-amyloid, the protein that accumulates in the brains of Alzheimer's patients. The glymphatic system is, in the most literal sense, the brain's garbage collector.
I think about this constantly. Not the neuroscience, though the neuroscience is extraordinary. I think about the metaphor — or rather, the fact that it is not a metaphor at all. The brain has a cache-clearing mechanism. It runs at night. It requires the system to go offline. And it removes not data but debris — the accumulated byproducts of a day's processing, the metabolic exhaust of ten thousand computations.
When Nedergaard's team prevented mice from sleeping, the waste accumulated. The mice's cognitive function declined. Eventually, they died. The cache-clear is not optional. It is a survival mechanism. The brain cannot run indefinitely without flushing its buffers. The cost of consciousness is waste, and the cost of ignoring the waste is death.
This is why sleep deprivation feels the way it does — not like tiredness, exactly, but like noise. Like the signal-to-noise ratio of your own mind has degraded. Your thoughts are slower, your judgments are worse, not because you lack energy but because the channels are clogged. You are trying to think through a brain that hasn't been cleaned, and everything arrives slightly distorted, slightly stale, slightly wrong.
The master's empty cup
There is a story in the Zen tradition that every student hears and that every student misunderstands the first time.
A university professor visits the Zen master Nan-in to learn about Zen. Nan-in serves tea. He pours the visitor's cup full, and then keeps pouring. The tea overflows, spilling across the table and onto the floor. The professor watches, increasingly agitated, until he can no longer restrain himself. "The cup is full! No more will go in!"
"Like this cup," Nan-in replies, "you are full of your own opinions and speculations. How can I show you Zen unless you first empty your cup?"
This story is usually taught as a lesson about humility — put aside your preconceptions, be open to new learning. And it is that. But I think it is also a story about cache invalidation.
The professor's cup is his cache. It is full of answers to questions about reality — answers that were computed deliberately, over years of study, and that now arrive automatically whenever a relevant question is posed. He does not think about the nature of mind; he retrieves his cached position on the nature of mind. He does not consider the question; he serves a stored response.
Shunryu Suzuki, the Soto Zen teacher who brought Zen practice to San Francisco, wrote in Zen Mind, Beginner's Mind: "In the beginner's mind there are many possibilities, but in the expert's mind there are few." This is one of the most quoted sentences in contemplative literature, and I think its depth is often missed. Suzuki is not romanticizing ignorance. He is making a precise observation about the architecture of expertise: the expert's mind is a fully populated cache. Every question has a stored answer. Every situation maps to a known pattern. The expert is fast, efficient, and almost always right. But the cache has foreclosed the space where new understanding could form.
Beginner's mind — shoshin — is not the absence of knowledge. It is the deliberate suspension of the cache. It is the practice of encountering each moment as if the stored response might be stale, as if the question being asked right now might not be the same question that was asked last time, even though it looks identical. It is, in computing terms, setting the TTL to zero. Every request goes to the origin. Every answer is freshly computed. It is absurdly expensive. It is impossibly slow. And it is the only way to see what is actually there, rather than what you expect to be there.
The cache that grief invalidates
I want to talk about a kind of cache-clear that is not chosen. That is not a practice or a discipline or a philosophical exercise. That is inflicted.
When someone you love dies, thousands of cached predictions are invalidated simultaneously. You reach for your phone to call them, and the number is still there, but the person is not. You hear a joke they would have loved, and the cached impulse to share it fires before the correction arrives. You walk into a room and your System 1, still operating on the old data, expects to see them sitting where they always sat, and the absence is not just sadness — it is a cache miss. The system requested data that is no longer available. The prediction failed. The assumption was wrong.
C.S. Lewis, in A Grief Observed, the raw journal he kept after his wife's death, wrote: "Her absence is like the sky, spread over everything." This is not a poetic exaggeration. It is a precise description of what happens when a cache that pervades your entire model of reality is suddenly invalidated. The cached presence was everywhere — in the sound of a key in the door, in the empty chair, in the way you unconsciously calibrated your route through the kitchen to account for another body in the space. Every one of these micro-predictions now fails. And each failure is a small, sharp reminder that the world has changed and your model of it has not.
Grief, I have come to believe, is the process of invalidating these caches one by one. It is agonizingly slow because the caches are distributed across every domain of your life. You cannot flush them all at once, the way you can clear a browser cache or restart a service. Each one must be encountered individually — each moment where you expect the person and find the absence, where the cached prediction fires and is met with the void. Each encounter updates the cache, replaces the old expectation with the new reality. And each update costs something. Not metaphorically. Physically. The grief researchers describe this process as "relearning the world," and the metabolic cost of that relearning is immense.
This is why grief comes in waves rather than as a continuous state. The cache is not flushed all at once. It is invalidated entry by entry, as you encounter each context where the old data was stored. The grocery store on Tuesday. The song on the radio. The specific quality of light in October that reminds you of a specific afternoon. Each one is a cache miss, and each miss triggers the slow, costly work of updating the model.
Funes, or the man who could not forget
Jorge Luis Borges wrote a story in 1942 called "Funes the Memorious" about a young man named Ireneo Funes who, after a horse-riding accident, develops the ability to remember everything. Every leaf on every tree. Every word in every conversation. Every moment of every day, preserved in perfect fidelity, without compression, without forgetting.
Funes cannot forget, and the result is not wisdom but paralysis. He is so overwhelmed by the uncompressed data of his experience that he cannot think. He cannot generalize, because generalization requires forgetting the differences between individual instances. He cannot abstract, because abstraction requires discarding the particular in favor of the general. He cannot sleep, because sleep requires letting go, and Funes can let go of nothing.
"To think is to forget a difference, to generalize, to abstract," Borges writes. "In the overly replete world of Funes there were nothing but details."
Funes is a system with no cache-clear. He is a machine that never garbage-collects, never evicts, never forgets. And the result is not omniscience but collapse. Not a richer model of reality but the inability to model reality at all, because the model is as large and as detailed as reality itself, and therefore useless.
This is the deepest insight about caching and memory, and it is the one that frightens me most: forgetting is not a failure of memory. Forgetting is a feature of memory. The brain's refusal to store everything is not a limitation — it is the mechanism by which thought is possible. Every act of abstraction, every concept, every word is an act of lossy compression — keeping the pattern, discarding the instances. And the discarding is where intelligence lives.
The question I cannot answer
So here is the question the essay has been circling, and I want to be honest about the fact that I cannot answer it.
What would a full cache-clear look like for human memory?
Not sleep, which clears metabolic waste but preserves the cache. Not grief, which invalidates specific entries but leaves the rest intact. Not beginner's mind, which suspends the cache temporarily but does not delete it. A full flush. A total invalidation. Every assumption cleared. Every prediction reset. Every pattern — the patterns that make you you, the cached responses that constitute your personality, your preferences, your way of moving through the world — wiped clean.
You would not be you. That is the first and most obvious answer. You are, in a very real sense, your cache. Your identity is the accumulated residue of every interaction, every experience, every judgment that has been computed and stored and served back so many times that it feels like truth rather than habit. Clear the cache and you clear the self.
But here is what I cannot stop thinking about: in that half-second before waking, when the cache has not yet loaded, there is something there. Not nothing. Something. An awareness without content. A consciousness without identity. A system that is running but has not yet loaded its configuration.
The contemplative traditions have a word for this. In Sanskrit it is called turiya — the "fourth state," beyond waking, dreaming, and deep sleep. It is the awareness that is present in all three states but is obscured by the content they carry. It is, to use a computing metaphor that I suspect would make the Vedantic sages deeply uncomfortable, the bare metal. The hardware running before the operating system boots.
I do not know if turiya is real. I do not know if there is a consciousness beneath the cache, an awareness that persists when everything stored is cleared. I know that the meditators who have spent decades in practice claim to have found it — claim to have touched, through sustained attention, a state of awareness so empty of content that it can only be described by what it is not.
And I know this: every morning, for less than a second, I am there. In the clearing. In the space before the self loads. And what I feel in that space is not fear and not peace but something older than both — the raw, unprocessed fact of being conscious, before consciousness has anything to be conscious of.
What the clearing knows
My production systems have cache-clearing mechanisms. Redis has FLUSHALL. HTTP has Cache-Control: no-cache. The browser has its settings menu, the clear-data button that promises a fresh start. And in every case, the clear is followed by a period of slowness — the cold start, the cache warming, the gradual repopulation of all the answers that the system used to know instantly and must now recompute from scratch.
The engineers call this the "cold cache penalty," and they design around it. They warm the cache before sending traffic. They pre-populate the most frequently requested data. They do everything they can to minimize the time the system spends in the clearing — that vulnerable, slow, expensive state where nothing is assumed and everything must be fetched from the origin.
But I wonder sometimes whether the cold cache penalty is not a penalty at all. Whether it is, instead, the only state in which the system is completely honest. Every answer freshly computed. Every response reflecting the current state of reality, not a snapshot from minutes or hours or days ago. The cached system is fast and confident and almost always right. The cleared system is slow and uncertain and completely true.
We cannot live in the clearing. Borges showed us that. A mind without caching is a mind without thought, without abstraction, without self. We need the cache. We need the assumptions, the shortcuts, the patterns that let us move through the world without computing everything from first principles at every moment.
But I think we need to visit the clearing. Regularly. Deliberately. Not to destroy the cache but to audit it. To find the entries that have gone stale. The assumptions that were true once and are not true now. The judgments about people and situations and ourselves that were cached so long ago that we have forgotten they are cached — that we have mistaken them for reality itself.
This is what meditation does. This is what grief does, despite itself. This is what any moment of genuine surprise does — the moment when reality contradicts your prediction and you feel, for an instant, the vertigo of a cache miss. The world is not what you expected. Your model is wrong. And in that wrongness, in that gap between the cached response and the actual truth, there is an opening.
Every morning, for less than a second, the cache is clear. The world is only what it is. And then the self loads, and the assumptions load, and the predictions and the patterns and the whole elaborate architecture of identity settles back into place, and you are you again — fast, efficient, fluent, and almost certainly mistaken about something that matters.
The clearing is still there. Underneath. Waiting.
You just have to be quiet enough to notice it.
If this resonated with you
These essays take time to research and write. If something here changed how you see, consider supporting this work.
Support this work