File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -104,13 +104,14 @@ if [ -z "$FASTCGI_CACHE" ]; then
104104 add_object_key " web" ' DOMAIN' " $domain " ' FASTCGI_CACHE' ' ALIAS'
105105fi
106106if [ -z " $FASTCGI_LENGTH " ]; then
107- add_object_key " web" ' DOMAIN' " $domain " ' FASTCGI_LENGTH' ' ALIAS'
107+ add_object_key " web" ' DOMAIN' " $domain " ' FASTCGI_LENGTH' ' ALIAS'
108108fi
109109
110110# Set FastCGI cache flag to enabled
111111update_object_value ' web' ' DOMAIN' " $domain " ' $FASTCGI_CACHE' ' yes'
112+ update_object_value ' web' ' DOMAIN' " $domain " ' $FASTCGI_LENGTH' " $length "
112113
113- if [ " $restart " = " yes" ]; then
114+ if [ " $restart " = " yes" ]; then
114115 # Restart web server
115116 $BIN /v-restart-web
116117 check_result $? " Web server restart failed" > /dev/null
Original file line number Diff line number Diff line change 6666# ----------------------------------------------------------#
6767
6868if [ -z " $FASTCGI_CACHE " ]; then
69- add_object_key " web" ' DOMAIN' " $domain " ' FASTCGI_CACHE' ' ALIAS'
69+ add_object_key " web" ' DOMAIN' " $domain " ' FASTCGI_CACHE' ' ALIAS'
70+ fi
71+ if [ -z " $FASTCGI_LENGTH " ]; then
72+ add_object_key " web" ' DOMAIN' " $domain " ' FASTCGI_LENGTH' ' ALIAS'
7073fi
7174
72- # Set FASTCGI flag to disabled
75+ # Set FastCGI cache flag to enabled
7376update_object_value ' web' ' DOMAIN' " $domain " ' $FASTCGI_CACHE' ' '
77+ update_object_value ' web' ' DOMAIN' " $domain " ' $FASTCGI_LENGTH' ' '
7478
7579# Restart web server
7680if [ ! -z " $restart " ]; then
You can’t perform that action at this time.
0 commit comments