Glossary

Caching

Caching is storing the result of an expensive operation (SQL query, HTTP call, rendering) for reuse without recomputing it. Proper caching is one of the most effective ways to speed up an application without changing algorithms.

Cache layers

Invalidation

The hardest part of caching is deciding when data is stale. Two strategies: TTL (time to live) — simpler, but data may be outdated; event-based invalidation — more precise, but harder to implement.