Skip to content

Commit 22d1b8b

Browse files
author
Alexandros Ioannides
authored
Reduce caching resources
1 parent e334204 commit 22d1b8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/deb/templates/web/nginx/caching.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ ip=$3
66
home=$4
77
docroot=$5
88

9-
str="proxy_cache_path /var/cache/nginx/$domain levels=2"
10-
str="$str keys_zone=$domain:10m inactive=60m max_size=512m;"
9+
str="proxy_cache_path /var/cache/nginx/$domain levels=1:2"
10+
str="$str keys_zone=$domain:10m max_size=256m inactive=30m;"
1111
conf='/etc/nginx/conf.d/01_caching_pool.conf'
1212
if [ -e "$conf" ]; then
1313
if [ -z "$(grep "=${domain}:" $conf)" ]; then

0 commit comments

Comments
 (0)