Skip to main content

ZC-10966 - how to add use_temp_path=off to proxy_cache_path in NGINX with Reverse Proxy

Comments

1 comment

  • imorandin

    Hi,

    I had the same problem. You can "hack" it by adding the parameter using "levels" like this:

    {
       "enabled" : true,
       "inactive_time" : "60m",
       "levels" : "1:2 use_temp_path=off",
       "logging" : false,
       "proxy_cache_background_update" : "on",
       "proxy_cache_lock" : "off",
       "proxy_cache_min_uses" : 1,
       "proxy_cache_revalidate" : "on",
       "proxy_cache_use_stale" : "error timeout http_429 http_500 http_502 http_503 http_504",
       "proxy_cache_valid" : {
          "200 301 302" : "60s",
          "404" : "30s"
       },
       "x_cache_header" : false,
       "zone_size" : "10m"
    }

    And then execute a rebuild. 

    You'll get this in your users/user.conf file:

    proxy_cache_path /var/cache/ea-nginx/proxy/wordpresstest levels=1:2 use_temp_path=off keys_zone=wordpresstest:10m inactive=60m;

    Oh yeah.

    0

Please sign in to leave a comment.