File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 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# ----------------------------------------------------------#
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'
71+ if [ -z " $FASTCGI_DURATION " ]; then
72+ add_object_key " web" ' DOMAIN' " $domain " ' FASTCGI_DURATION ' ' ALIAS'
7373fi
7474
75- # Set FastCGI cache flag to enabled
75+ # Set FastCGI cache flag to disabled
7676update_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
8080if [ ! -z " $restart " ]; then
You can’t perform that action at this time.
0 commit comments