We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 671e99c commit 6f59944Copy full SHA for 6f59944
bin/v-purge-nginx-cache
@@ -49,12 +49,12 @@ parse_object_kv_list "$conf"
49
50
# Purge nginx FastCGI cache
51
if [ -d "/var/cache/nginx/micro/$domain" ]; then
52
- rm -rf /var/cache/nginx/micro/$domain
+ rm -rf /var/cache/nginx/micro/$domain/*
53
fi
54
55
# Purge nginx proxy cache
56
if [ -d "/var/cache/nginx/$domain" ]; then
57
- rm -rf /var/cache/nginx/$domain
+ rm -rf /var/cache/nginx/$domain/*
58
59
60
#----------------------------------------------------------#
@@ -65,6 +65,10 @@ fi
65
if [ "$restart" != "no" ]; then
66
$BIN/v-restart-web "$restart"
67
check_result $? "Web restart failed" > /dev/null
68
+
69
+ $BIN/v-restart-proxy "$restart"
70
+ check_result $? "Proxy restart failed" >/dev/null
71
72
73
74
# Logging
0 commit comments