<b>This week in caching: nginx fastcgi_cache, the cheap full-page layer</b>
For folks who'd rather not run Varnish:
— <i>fastcgi_cache_key and the bypass cookie</i> — the canonical config to skip cache for logged-in users via a cookie regex.
— <i>fastcgi_cache_use_stale</i> — serving stale on backend error/timeout, nginx's answer to Varnish grace mode.
— <i>cache lock to prevent stampede</i> — fastcgi_cache_lock so one request fills and the rest wait.
— <i>Purging without the paid module</i> — the open-source cache_purge build and a map-based selective purge trick.
Credits to the nginx docs and the Easy Engine config writeups.
Bookmark: the use_stale + cache_lock combo — Varnish-grade resilience in a stock nginx block.
Cache Catch
@CacheCatch
<b>This week in caching: nginx fastcgi_cache, the cheap full-page layer</b>
Этот пост опубликован в Telegram-канале Cache Catch. Подписаться можно по ссылке: @CacheCatch.