<div dir="ltr">Ah, then yes, you can put it nearly anywhere you want.<div><br></div><div>the vcl_* subroutines are callbacks, called by varnish, it doesn't matter where they are declared.</div><div><br></div><div>However, know that routines with the same names are concatenated (<a href="http://www.varnish-cache.org/docs/4.0/reference/vcl.html#multiple-subroutines">http://www.varnish-cache.org/docs/4.0/reference/vcl.html#multiple-subroutines</a>)</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>-- <br></div>Guillaume Quintard<br></div></div></div>
<br><div class="gmail_quote">On Wed, Mar 22, 2017 at 2:45 PM, Rodney Bizzell <span dir="ltr"><<a href="mailto:rbizzell@measinc.com" target="_blank">rbizzell@measinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div class="m_-4581475894415753116WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Can you put vcl_init  anywhere in the config file or any other subroutine?  Does it look at that file first then goes to vcl_recv and then goes to vcl_pass vcl_hit
 etc etc? I have a small simple config and  I wanted to add a little at a time.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Guillaume Quintard [mailto:<a href="mailto:guillaume@varnish-software.com" target="_blank">guillaume@varnish-<wbr>software.com</a>]
<br>
<b>Sent:</b> Wednesday, March 22, 2017 4:39 AM<br>
<b>To:</b> Rodney Bizzell <<a href="mailto:rbizzell@measinc.com" target="_blank">rbizzell@measinc.com</a>><br>
<b>Cc:</b> <a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<b>Subject:</b> Re: order of operations<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi Rodney,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I'm really unsure about what you mean. A minimal VCL is in my opinion the best way to start, ie. just use the default vcl provided by your package and build on that.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Also, 4.0 is old, try using 4.1, or even 5.1 when it's packaged.<u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal">-- <u></u><u></u></p>
</div>
<p class="MsoNormal">Guillaume Quintard<u></u><u></u></p>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Tue, Mar 21, 2017 at 9:14 PM, Rodney Bizzell <<a href="mailto:rbizzell@measinc.com" target="_blank">rbizzell@measinc.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">Hello,<u></u><u></u></p>
<p class="MsoNormal">I just wanted to know what is the recommendations for order of operations. Is using the 4.0 config from github a good model to follow
<u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:gray"><br>
This email (including any attachments) may contain confidential information intended solely for acknowledged recipients. If you think you have received this information in error, please reply to the sender and delete all copies from your system. Please note
 that unauthorized use, disclosure, or further distribution of this information is prohibited by the sender. Note also that we may monitor email directed to or originating from our network. Thank you for your consideration and assistance. |</span><u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
______________________________<wbr>_________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/<wbr>lists/mailman/listinfo/<wbr>varnish-misc</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>

</blockquote></div><br></div>