From e92f08e323dfa2fd488ab92ef38c5f224fb930e8 Mon Sep 17 00:00:00 2001 From: JapSeyz Date: Sat, 28 Jul 2018 09:11:24 +0200 Subject: [PATCH] -u no longer supported (#1733) * -u no longer supported https://varnish-cache.org/docs/4.1/reference/varnishd.html https://support.jpgottech.com/knowledgebase.php?article=90 issue #1732 --- varnish/default.vcl | 6 +++--- varnish/start.sh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/varnish/default.vcl b/varnish/default.vcl index 155a863a..73099c39 100644 --- a/varnish/default.vcl +++ b/varnish/default.vcl @@ -266,7 +266,7 @@ sub vcl_hit { return (deliver); } else { # No candidate for grace. Fetch a fresh object. - return(fetch); + return(miss); } } else { # backend is sick - use full grace @@ -275,12 +275,12 @@ sub vcl_hit { return (deliver); } else { # no graced object. - return (fetch); + return (miss); } } # fetch & deliver once we get the result - return (fetch); # Dead code, keep as a safeguard + return (miss); # Dead code, keep as a safeguard } sub vcl_miss { diff --git a/varnish/start.sh b/varnish/start.sh index e14511a9..7e7c28a5 100644 --- a/varnish/start.sh +++ b/varnish/start.sh @@ -11,7 +11,7 @@ exec bash -c \ "exec varnishd \ -a :$VARNISH_PORT \ -T localhost:6082 \ - -F -u varnish \ + -F \ -f $VARNISH_CONFIG \ -s malloc,$CACHE_SIZE \ - $VARNISHD_PARAMS" \ No newline at end of file + $VARNISHD_PARAMS"