Re: using $upstream* variables inside map directive

2020-11-12 Thread unoobee
> And you are reporting that it does not ever write to "ssd_cache". Yes, this is correct. I want to choose the cache location based on the size of the cached file I want to get the behavior described in the article, but only with the file size in the map directive, I assume I need $sent_http_conte

Re: using $upstream* variables inside map directive

2020-11-12 Thread unoobee
My configuration looks like this: proxy_cache_path /cache/ssd keys_zone=ssd_cache:10m levels=1:2 inactive=600s max_size=100m; proxy_cache_path /cache/hdd keys_zone=hdd_cache:10m levels=1:2 inactive=600s max_size=100m; upstream backend { server www.test.com:443; }

Re: using $upstream* variables inside map directive

2020-11-11 Thread unoobee
I tried using $upstream_http_content_length inside the map directive with the "volatile" parameter to specify the proxy_cache behavior, but the map still uses the default value. Is there any way to set the proxy_cache behavior depending on $upstream_http_content_length via the map directive? Poste

Re: using $upstream* variables inside map directive

2020-11-11 Thread unoobee
Ruslan, could you send that patch for "map"? I would like to check it. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,249880,289960#msg-289960 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx