Skip to content

Commit 2a8c17a

Browse files
committed
Save length in config instead the flag yes/no to save on extra option
1 parent 2b422e3 commit 2a8c17a

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

bin/v-add-fastcgi-cache

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ if [ -z "$FASTCGI_LENGTH" ]; then
108108
fi
109109

110110
# Set FastCGI cache flag to enabled
111-
update_object_value 'web' 'DOMAIN' "$domain" '$FASTCGI_CACHE' 'yes'
112-
update_object_value 'web' 'DOMAIN' "$domain" '$FASTCGI_LENGTH' "$length"
111+
update_object_value 'web' 'DOMAIN' "$domain" '$FASTCGI_CACHE' "$length"
113112

114113
if [ "$restart" = "yes" ]; then
115114
# Restart web server

bin/v-delete-fastcgi-cache

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,9 @@ fi
6868
if [ -z "$FASTCGI_CACHE" ]; then
6969
add_object_key "web" 'DOMAIN' "$domain" 'FASTCGI_CACHE' 'ALIAS'
7070
fi
71-
if [ -z "$FASTCGI_LENGTH" ]; then
72-
add_object_key "web" 'DOMAIN' "$domain" 'FASTCGI_LENGTH' 'ALIAS'
73-
fi
7471

7572
# Set FastCGI cache flag to enabled
76-
update_object_value 'web' 'DOMAIN' "$domain" '$FASTCGI_CACHE' ''
77-
update_object_value 'web' 'DOMAIN' "$domain" '$FASTCGI_LENGTH' ''
73+
update_object_value 'web' 'DOMAIN' "$domain" '$FASTCGI_CACHE' ''
7874

7975
# Restart web server
8076
if [ ! -z "$restart" ]; then

0 commit comments

Comments
 (0)