When you have installed Varnish Cache Plus 6.0, most probably you can simply start varnish with your old configuration files.
This page is a guide to you when you start to upgrade to
It is not a not a list of new features of VCL, but a minimal set of changes that is needed to achieve equivalent operation on
This list might not be complete. If you run into problems with using your existing configuration with 6.0, contact support. We will help you to get going, and update this list accordingly.
All VCL Objects should now be defined before used. The compiler will generate an error if objects are defined before use.
VCL names are restricted to alphanumeric characters, dashes and underscores. In addition, the first character should be alphabetic. That is, the name should match “[A-Za-z][A-Za-z0-9_-]*“.
sub vcl_recv, the
rollback function has been retired.
sub vcl_hit, replace
return (fetch) with
return (miss). Failing to do this will give you many error log lines in the shared memory log.
req.ttl is deprecated.
softpurge has been retired. The functionality is covered by the new
Note that there are many improvements to VCL in Varnish 6.0, but these are not covered here.