diff --git a/install/rhel/nginx.conf b/install/rhel/nginx.conf index f33a8f7ba..3897fa5da 100644 --- a/install/rhel/nginx.conf +++ b/install/rhel/nginx.conf @@ -83,6 +83,7 @@ http { # Cache proxy_cache_path /var/cache/nginx levels=2 keys_zone=cache:10m inactive=60m max_size=512m; proxy_temp_path /var/cache/nginx/temp; + proxy_cache_key "$host$request_uri $cookie_user"; proxy_ignore_headers Expires Cache-Control; proxy_cache_use_stale error timeout invalid_header http_502; proxy_cache_valid any 3d; diff --git a/install/rhel/templates/web/nginx/caching.stpl b/install/rhel/templates/web/nginx/caching.stpl index be65e36f0..31f6111fa 100755 --- a/install/rhel/templates/web/nginx/caching.stpl +++ b/install/rhel/templates/web/nginx/caching.stpl @@ -10,7 +10,7 @@ server { proxy_pass http://%ip%:%web_port%; proxy_cache cache; - proxy_cache_valid 10m; + proxy_cache_valid 15m; proxy_cache_valid 404 1m; proxy_no_cache $no_cache; proxy_cache_bypass $no_cache; diff --git a/install/rhel/templates/web/nginx/caching.tpl b/install/rhel/templates/web/nginx/caching.tpl index 467811e4f..8860be198 100755 --- a/install/rhel/templates/web/nginx/caching.tpl +++ b/install/rhel/templates/web/nginx/caching.tpl @@ -7,7 +7,7 @@ server { proxy_pass http://%ip%:%web_port%; proxy_cache cache; - proxy_cache_valid 10m; + proxy_cache_valid 15m; proxy_cache_valid 404 1m; proxy_no_cache $no_cache; proxy_cache_bypass $no_cache;