> 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_content_length or $upstream_http_content_length. https://www.nginx.com/blog/cache-placeby unoobee - Nginx Mailing List - English
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; } server { listen 80; server_name test.com; location / {by unoobee - Nginx Mailing List - English
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?by unoobee - Nginx Mailing List - English
Ruslan, could you send that patch for "map"? I would like to check it.by unoobee - Nginx Mailing List - English