This is an automated email from the ASF dual-hosted git repository.

spacewander pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new a6611d3  feat(proxy-cache): store the temporary file under cache 
directory. (#2317)
a6611d3 is described below

commit a6611d3058d44948ed0992acccbf512e4445fd41
Author: 罗泽轩 <spacewander...@gmail.com>
AuthorDate: Sun Oct 4 16:23:32 2020 +0800

    feat(proxy-cache): store the temporary file under cache directory. (#2317)
    
    When the temporary file directory and cache directory are under
    different disk, this option can avoid unexpected performance hurt.
---
 bin/apisix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/apisix b/bin/apisix
index 5636384..42309f3 100755
--- a/bin/apisix
+++ b/bin/apisix
@@ -206,7 +206,7 @@ http {
     {% if enabled_plugins["proxy-cache"] then %}
     # for proxy cache
     {% for _, cache in ipairs(proxy_cache.zones) do %}
-    proxy_cache_path {* cache.disk_path *} levels={* cache.cache_levels *} 
keys_zone={* cache.name *}:{* cache.memory_size *} inactive=1d max_size={* 
cache.disk_size *};
+    proxy_cache_path {* cache.disk_path *} levels={* cache.cache_levels *} 
keys_zone={* cache.name *}:{* cache.memory_size *} inactive=1d max_size={* 
cache.disk_size *} use_temp_path=off;
     {% end %}
     {% end %}
 

Reply via email to