Skip to content
Snippets Groups Projects
Commit d532f669 authored by Kristian Klausen's avatar Kristian Klausen :tada:
Browse files

archwiki: update the cache in the background

parent 8a7295dd
No related branches found
No related tags found
No related merge requests found
...@@ -88,6 +88,9 @@ server { ...@@ -88,6 +88,9 @@ server {
fastcgi_cache wiki; fastcgi_cache wiki;
fastcgi_cache_valid 200 10m; fastcgi_cache_valid 200 10m;
fastcgi_cache_background_update on;
fastcgi_cache_use_stale updating;
fastcgi_cache_lock on;
add_header X-Cache $upstream_cache_status; add_header X-Cache $upstream_cache_status;
} }
...@@ -113,6 +116,10 @@ server { ...@@ -113,6 +116,10 @@ server {
include fastcgi.conf; include fastcgi.conf;
fastcgi_cache wiki; fastcgi_cache wiki;
fastcgi_cache_background_update on;
fastcgi_cache_use_stale updating;
fastcgi_cache_lock on;
add_header X-Cache $upstream_cache_status; add_header X-Cache $upstream_cache_status;
limit_req zone=archwikilimit burst=10 nodelay; limit_req zone=archwikilimit burst=10 nodelay;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment