JapSeyz 2018-07-28 09:11:24 +02:00 committed by Shao Yu-Lung (Allen)
parent 1acbebc2a3
commit e92f08e323
2 changed files with 5 additions and 5 deletions

View File

@ -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 {
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 {

View File

@ -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"