Skip to content
Snippets Groups Projects
Commit edad032b authored by Florent Thiery's avatar Florent Thiery
Browse files

Increase cache limits | refs #33416

parent 5b9b0452
No related branches found
No related tags found
No related merge requests found
proxy_cache_path {{ mediacache_folder }} levels=1:2 keys_zone=mediacache:10m max_size={{ mediacache_size }}g inactive=300s;
# Cache configuration
# Maximum retention of 30 days
# 4G of RAM for keys zone (one megabyte can store about 8 thousand keys)
# https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_path
proxy_cache_path {{ mediacache_folder }} levels=1:2 keys_zone=mediacache:4000m max_size={{ mediacache_size }}g inactive=30d;
server {
listen 80 default_server;
......@@ -64,7 +68,7 @@ server {
proxy_cache_lock on;
# how long should the data be kept in the cache
proxy_cache_valid 200 7d;
proxy_cache_valid 200 30d;
# instruct browser to cache this
expires 7d;
......
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