Browse Source

Reduce caching resources

Alexandros Ioannides 4 years ago
parent
commit
22d1b8b493
1 changed files with 2 additions and 2 deletions
  1. 2 2
      install/deb/templates/web/nginx/caching.sh

+ 2 - 2
install/deb/templates/web/nginx/caching.sh

@@ -6,8 +6,8 @@ ip=$3
 home=$4
 docroot=$5
 
-str="proxy_cache_path /var/cache/nginx/$domain levels=2" 
-str="$str keys_zone=$domain:10m inactive=60m max_size=512m;" 
+str="proxy_cache_path /var/cache/nginx/$domain levels=1:2" 
+str="$str keys_zone=$domain:10m max_size=256m inactive=30m;" 
 conf='/etc/nginx/conf.d/01_caching_pool.conf'
 if [ -e "$conf" ]; then
     if [ -z "$(grep "=${domain}:" $conf)" ]; then