~/talk

Caching Best Practices

Talkat PHP UK Conference 2014 · 2014-02-21..02-22· [web-performance]
slides:none on file

Claims concrete wins: opcode caches give 10x to 100x speedups; APC/OPcache and memcached (memcached D) are compared; APC stores parsed PHP objects in-process while Memcached shares across webheads with serialization and features like append/prepend, async get and check‑and‑set to reduce contention. Examples: Digg reduces average DB calls to ~2.4 per user by caching many small reusable chunks, Facebook pre‑generates caches before rolling servers, and time‑based (5min) vs update/invalidations vs automatic write-through caching trade correctness for freshness while avoiding cache hammering.

AI-written summary · about

  1. 0:00Intro
  2. 2:42But my Data Changes!
  3. 5:15Opcode Cache Options
  4. 6:53Caching Methodologies
  5. 18:19Cache Invalidation Strategy update invalidation
  6. 24:01Common Cache Solutions
  7. 27:58APC Common Functions
  8. 29:11APC Example
  9. 31:58Memcached Libraries
  10. 32:51Configuring Memcached
  11. 34:58Managing Memcached
  12. 36:43Simple Example
  13. 37:40Manipulating Key Values
  14. 40:14Read Through Cache Callback
  15. 41:45Check and Set Operations
  16. 42:34Asynchronous Fetching
  17. 44:53Database Caching Example
  18. 45:54More Generic Example
  19. 47:13Concept: Multi-Layer Cache
  20. 51:22Biggest-Smallest Reusable
  21. 54:03Questions?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.