Skip to content

Commit caa8013

Browse files
author
António P. P. Almeida
committed
* Added 2h cache inactive to microcache configuration to avoid worker segfault.
1 parent 3b1b229 commit caa8013

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fastcgi_microcache_zone.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
## Cf. http://forum.nginx.org/read.php?21,213197,213209#msg-213209 for
99
## rationale. If you're using a Nginx version lower than 1.1.1 then
1010
## comment the line below and use the cache zone configuration below this one.
11-
fastcgi_cache_path /var/cache/nginx/microcache levels=1:2 keys_zone=microcache:5M max_size=1G loader_threshold=2592000000 loader_sleep=1 loader_files=100000;
11+
fastcgi_cache_path /var/cache/nginx/microcache levels=1:2 keys_zone=microcache:5M max_size=1G inactive=2h loader_threshold=2592000000 loader_sleep=1 loader_files=100000;
1212

1313
## If you're not using a Nginx version greater or equal to 1.1.1 then
1414
## comment the above configuration and use this one. No cache loader
1515
## tweaking.
16-
#fastcgi_cache_path /var/cache/nginx/microcache levels=1:2 keys_zone=microcache:5M max_size=1G;
16+
#fastcgi_cache_path /var/cache/nginx/microcache levels=1:2 keys_zone=microcache:5M max_size=1G inactive=2h;

0 commit comments

Comments
 (0)