File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ if [ -z "$FASTCGI_LENGTH" ]; then
108108fi
109109
110110# Set FastCGI cache flag to enabled
111- update_object_value ' web' ' DOMAIN' " $domain " ' $FASTCGI_CACHE' " $length "
111+ update_object_value ' web' ' DOMAIN' " $domain " ' $FASTCGI_CACHE' ' yes'
112+ update_object_value ' web' ' DOMAIN' " $domain " ' FASTCGI_LENGTH' " $length "
112113
113114if [ " $restart " = " yes" ]; then
114115 # Restart web server
Original file line number Diff line number Diff line change 6868if [ -z " $FASTCGI_CACHE " ]; then
6969add_object_key " web" ' DOMAIN' " $domain " ' FASTCGI_CACHE' ' ALIAS'
7070fi
71+ if [ -z " $FASTCGI_LENGTH " ]; then
72+ add_object_key " web" ' DOMAIN' " $domain " ' FASTCGI_LENGTH' ' ALIAS'
73+ fi
7174
7275# Set FastCGI cache flag to enabled
73- update_object_value ' web' ' DOMAIN' " $domain " ' $FASTCGI_CACHE' ' '
76+ update_object_value ' web' ' DOMAIN' " $domain " ' $FASTCGI_CACHE' ' no'
77+ update_object_value ' web' ' DOMAIN' " $domain " ' $FASTCGI_LENGTH' ' 0s'
7478
7579# Restart web server
7680if [ ! -z " $restart " ]; then
You can’t perform that action at this time.
0 commit comments