Add fcgicache nginx config block for global use

This commit is contained in:
Sadiq Saif 2017-10-29 14:27:37 -04:00 committed by GitHub
parent 8a8426e5d4
commit 310a8373ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -259,3 +259,9 @@
- ssl_session_timeout 1d
- ssl_session_cache shared:SSL:50m
- ssl_session_tickets off
fcgicache:
- fastcgi_cache_path "/var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:100m inactive=60m"
- fastcgi_cache_key "$scheme$request_method$host$request_uri"
- fastcgi_cache_use_stale error timeout invalid_header http_500
- fastcgi_ignore_headers Cache-Control Expires Set-Cookie
- add_header rt-Fastcgi-Cache $upstream_cache_status