This week in caching: microcaching, the 1-second miracle
Three on caching "uncacheable" dynamic pages for one second.
— proxy_cache for 1s — even proxy_cache_valid 200 1s; collapses a traffic spike of identical requests into one origin hit; dynamic content stays effectively live.
— cache lock to prevent dogpiling — pair with proxy_cache_lock on; so only one request repopulates an expired key.
— use_stale on errors — proxy_cache_use_stale updating error timeout; serves the last good copy while origin recovers.
Bookmark: the NGINX microcaching blog post — "cache the uncacheable for one second" reframes what's cacheable for most dynamic sites.
Cache Catch
@CacheCatch
This week in caching: microcaching, the 1-second miracle
Этот пост опубликован в Telegram-канале Cache Catch. Подписаться можно по ссылке: @CacheCatch.