Commit e92f08e3 authored by JapSeyz's avatar JapSeyz Committed by Shao Yu-Lung (Allen)
parent 1acbebc2
...@@ -266,7 +266,7 @@ sub vcl_hit { ...@@ -266,7 +266,7 @@ sub vcl_hit {
return (deliver); return (deliver);
} else { } else {
# No candidate for grace. Fetch a fresh object. # No candidate for grace. Fetch a fresh object.
return(fetch); return(miss);
} }
} else { } else {
# backend is sick - use full grace # backend is sick - use full grace
...@@ -275,12 +275,12 @@ sub vcl_hit { ...@@ -275,12 +275,12 @@ sub vcl_hit {
return (deliver); return (deliver);
} else { } else {
# no graced object. # no graced object.
return (fetch); return (miss);
} }
} }
# fetch & deliver once we get the result # 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 { sub vcl_miss {
......
...@@ -11,7 +11,7 @@ exec bash -c \ ...@@ -11,7 +11,7 @@ exec bash -c \
"exec varnishd \ "exec varnishd \
-a :$VARNISH_PORT \ -a :$VARNISH_PORT \
-T localhost:6082 \ -T localhost:6082 \
-F -u varnish \ -F \
-f $VARNISH_CONFIG \ -f $VARNISH_CONFIG \
-s malloc,$CACHE_SIZE \ -s malloc,$CACHE_SIZE \
$VARNISHD_PARAMS" $VARNISHD_PARAMS"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment