Skip to content

Commit f8fd04d

Browse files
author
Alexandros Ioannides
authored
Update v-delete-fastcgi-cache
1 parent 18f34f2 commit f8fd04d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bin/v-delete-fastcgi-cache

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/bash
2-
# info: Remove FastCGI nginx support
2+
# info: Disable FastCGI cache for nginx
33
# options: USER DOMAIN [RESTART]
44
# labels: hestia web
55
#
66
# example: v-delete-fastcgi-cache user domain.tld
77
#
8-
# The function enables FastCGI cache for nginx
8+
# The function disables FastCGI cache for nginx
99

1010

1111
#----------------------------------------------------------#
@@ -68,13 +68,13 @@ 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'
71+
if [ -z "$FASTCGI_DURATION" ]; then
72+
add_object_key "web" 'DOMAIN' "$domain" 'FASTCGI_DURATION' 'ALIAS'
7373
fi
7474

75-
# Set FastCGI cache flag to enabled
75+
# Set FastCGI cache flag to disabled
7676
update_object_value 'web' 'DOMAIN' "$domain" '$FASTCGI_CACHE' 'no'
77-
update_object_value 'web' 'DOMAIN' "$domain" '$FASTCGI_LENGTH' '0s'
77+
update_object_value 'web' 'DOMAIN' "$domain" '$FASTCGI_DURATION' '0s'
7878

7979
# Restart web server
8080
if [ ! -z "$restart" ]; then

0 commit comments

Comments
 (0)