Skip to content

Instantly share code, notes, and snippets.

@lukecav
Created August 9, 2017 00:24
Show Gist options
  • Save lukecav/66b65343af8621ce88904b474bf47c69 to your computer and use it in GitHub Desktop.
Save lukecav/66b65343af8621ce88904b474bf47c69 to your computer and use it in GitHub Desktop.
NGNIX use state cache itmes while updating in the background
#Use stale cache items while updating in the background
fastcgi_cache_use_stale updating error timeout invalid_header http_500;
fastcgi_cache_lock on;
fastcgi_cache_lock_timeout 5s;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment