Skip to content

Commit 11ccabc

Browse files
committed
Fixed size 50MB for fastcgi.conf
1 parent cc86ac5 commit 11ccabc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

etc/nginx/conf.d/fastcgi.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Fastcgi Cahe Settings
22

3-
fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:500m inactive=60m;
3+
fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:50m inactive=60m;
44
fastcgi_cache_key "$scheme$request_method$host$request_uri";
55
fastcgi_cache_use_stale error timeout invalid_header updating http_500 http_503;
66
fastcgi_cache_valid any 1h;

install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,11 @@ then
158158
fi
159159

160160
# Adjust FastCGI Cache Size 20% Of /var/run
161-
VARRUNSIZE=$(df --block-size=M /var/run | awk '{print $4}' | tail -n1 |cut -d'M' -f1)
162-
FCSIZE=$(expr $VARRUNSIZE \* 25 / 100)
161+
#VARRUNSIZE=$(df --block-size=M /var/run | awk '{print $4}' | tail -n1 |cut -d'M' -f1)
162+
#FCSIZE=$(expr $VARRUNSIZE \* 25 / 100)
163163

164164
# Change Size
165-
sed -i "s/500m/$FCSIZE\m/" /usr/share/easyengine/nginx/conf.d/fastcgi.conf || OwnError "Unable To Change Fastcgi Cache Size"
165+
#sed -i "s/500m/$FCSIZE\m/" /usr/share/easyengine/nginx/conf.d/fastcgi.conf || OwnError "Unable To Change Fastcgi Cache Size"
166166

167167
# Git Config Settings
168168
EEGITNAME=$(git config user.name)

0 commit comments

Comments
 (0)