Caching

Decide what to cache, at which layer, for how long, and how it gets invalidated — before any cache is added. Use when someone proposes caching to make a read path faster, when stale or cross-user data is suspected, when adding a TTL or a Redis/CDN layer, or when reviewing a change that introduces one. Not for fixing a slow query or an N+1 (do that first — a cache over a bad query hides it), and not for HTTP header tuning with no server-side store.

nahid-sparktales Updated

File contents

nahid-sparktales/agent-dispatcher/tree/main/skills/backend/caching commit c7773c8d0c

Frequently asked questions

npx skillmds@latest add nahid-sparktales/caching