From d532f6699fbea7a13be08009b31bb01d7ae8238d Mon Sep 17 00:00:00 2001 From: Kristian Klausen <kristian@klausen.dk> Date: Sat, 20 Jul 2024 23:15:59 +0200 Subject: [PATCH] archwiki: update the cache in the background --- roles/archwiki/templates/nginx.d.conf.j2 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/archwiki/templates/nginx.d.conf.j2 b/roles/archwiki/templates/nginx.d.conf.j2 index ce395d1a9..547ba74f3 100644 --- a/roles/archwiki/templates/nginx.d.conf.j2 +++ b/roles/archwiki/templates/nginx.d.conf.j2 @@ -88,6 +88,9 @@ server { fastcgi_cache wiki; 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; } @@ -113,6 +116,10 @@ server { include fastcgi.conf; fastcgi_cache wiki; + fastcgi_cache_background_update on; + fastcgi_cache_use_stale updating; + fastcgi_cache_lock on; + add_header X-Cache $upstream_cache_status; limit_req zone=archwikilimit burst=10 nodelay; -- GitLab