[master] 31164908c clean out vmod cache at startup
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Mon Nov 16 16:45:08 UTC 2020
commit 31164908ce8e81d116e5a30b7fc404e00f4cc4b3
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Mon Nov 16 16:06:50 2020 +0100
clean out vmod cache at startup
Fixes #3243
diff --git a/bin/varnishd/mgt/mgt_main.c b/bin/varnishd/mgt/mgt_main.c
index 65ccfcb3d..db886f1e6 100644
--- a/bin/varnishd/mgt/mgt_main.c
+++ b/bin/varnishd/mgt/mgt_main.c
@@ -787,6 +787,10 @@ main(int argc, char * const *argv)
ARGV_ERR("Cannot create working directory (%s): %s\n",
workdir, vstrerror(errno));
+ VJ_master(JAIL_MASTER_FILE);
+ AZ(system("rm -rf vmod_cache"));
+ VJ_master(JAIL_MASTER_LOW);
+
if (VJ_make_subdir("vmod_cache", "VMOD cache", NULL)) {
ARGV_ERR(
"Cannot create vmod directory (%s/vmod_cache): %s\n",
More information about the varnish-commit
mailing list