hackhaton-space-stackHackhaton Space Stack
AcademyBuilder
Get Started
All terms
The Basics
  • Stack
  • Frontend & Backend
  • CLI
  • Monorepo
  • Server
  • Localhost
How AI Works
  • Context Window
  • Hallucination
  • Token
  • Prompt Caching
  • Session
  • Compaction
  • Embedding
  • Vector Database
  • RAG
  • Fine-tuning
  • Temperature
  • Inference
  • Reasoning
  • Multimodal
Building With AI
  • Agent
  • MCP
  • System Prompt
  • Skill
  • CLAUDE.md
  • Slash Command
  • Harness
  • Computer Use
  • Agents SDK
  • Voice Agents
  • OAuth
  • Vibe Coding
  • Permission Scope
  • Tool Calling
  • Prompt Injection
  • Eval
  • Guardrails
  • Sandbox
  • Progressive Disclosure
Code & Collaboration
  • Git
  • Commit
  • Branch
  • GitHub
  • Pull Request
  • Open Source
  • Markdown
  • Dependency
  • Merge
  • Fork
APIs & Connections
  • API
  • Auth
  • Database
  • ORM
  • SDK
  • Webhook
  • Endpoint
  • REST
  • HTTP Methods
  • Env File
  • Schema
  • JSON
  • YAML
  • Secret
  • Rate Limit
  • CORS
  • Cookie
  • Encryption
Shipping & Running
  • Deploy
  • Headless
  • Cron
  • DNS
  • CDN
  • Object Storage
  • Serverless
  • Edge
  • Worker
  • Runtime
  • Process
  • Daemon
  • Queue
  • Job
  • State
  • Cache
  • SSH
  • Build
  • Staging
  • Rollback
  • Docker
  • Feature Flag
  • Test
  • CI/CD
  • The Cloud
Debugging & Errors
  • Trace
  • Type Error
  • Stack Trace
  • Log
  • Bug
  • Patch
  • Latency
How Developers Think
  • DRY
  • YAGNI
  • KISS
  • Refactoring
  • Technical Debt
  • Async
← All terms

Type-safe, modern TypeScript scaffolding for full-stack web development

ThreadsGitHub

Info

  • Academy
  • Docs

Legal

  • Terms of Service
  • Privacy Policy

© 2026 Dzulhelmy Nazri

Shipping & Running

$definecache--plain-english

Cache

TLDRA nearby copy so you don't walk to the walk-in every time.

Cache is the cheat sheet in your pocket.

The textbook — the database, the origin server — has the truth. Looking it up is slow. So you copy a page onto a card and keep it close. Next time you need the answer, you read the card. That's a cache. The textbook never moved. You just stopped walking to it for every question.

The card is faster. The card can be wrong. If the textbook changed and you didn't recopy, you are performing last week's facts. That's the whole bug: "why is this old?"

Where the card lives

  • Your browser caches images and JS so a refresh is not a re-download.
  • A CDN is a cache for files, parked near the judge.
  • Redis (or similar) is a cache for query results so the backend skips the cabinet.
  • Prompt caching is a cache for the long prefix of an agent conversation, so you don't pay to re-read the whole brief every turn.

"Clear the cache" is not a spell. It means throw out the card and walk back to the textbook. Slower. Fresh. The site looks wrong because the judge's browser is still serving a copy from three deploys ago. The logo you "fixed" is still yesterday's logo on their laptop.

The builder will hand you a frontend that loves to cache. Fine. Know what you promised: how long the card is allowed to sit. If the score on the demo screen must be right this second, skip the shortcut. State that must be true belongs in the database, not on a card.

When caching works, pages feel instant and agent bills drop. When it's stale, you look sloppy — not broken in your logs, broken in their eyes.

What this unlocks

A cache is always the shortcut, never the source. Once you know which one you're reading from, "why is this old?" stops being a mystery and starts being a timer you set. You can make the demo fast without lying, and you have a way to throw the card away when the truth moves.

Related

  • CDN
  • State
  • Database
PrevState

Shipping & Running

NextSSH