From bc96caa0744c855deac346dc282513dfbff5e017 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 27 Apr 2010 21:00:42 -0400 Subject: Misc comments --- config/varnish64/varnish.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'config/varnish64') diff --git a/config/varnish64/varnish.inc b/config/varnish64/varnish.inc index 4f54d288..e098e20a 100644 --- a/config/varnish64/varnish.inc +++ b/config/varnish64/varnish.inc @@ -31,6 +31,7 @@ */ /* ========================================================================== */ +/* Return true if a backend is in use */ function is_varnish_backend_in_use($backendname) { global $g, $config; if($config['installedpackages']['varnishlbdirectors']['config'] != "") @@ -48,6 +49,7 @@ function is_varnish_backend_in_use($backendname) { return false; } +/* Build the URL mappings logic VCL config txt */ function varnish_get_url_mappings_txt() { global $g, $config, $urlmappings; $backends = ""; @@ -272,11 +274,12 @@ sub vcl_fetch { FETCH; } +/* Grab configuration txt blocks */ $urlmappings = varnish_get_url_mappings_txt(); $backends = get_backend_config_txt(); $backends .= get_lb_directors_config_txt(); - +/* Start to build varnish default.vcl configurationf file */ $varnish_config_file = <<