Varnish Running VCC-compiler failed on purge
- by FLX
I've been following this guide which uses this default.vcl. However, when starting Varnish I get the following error:
* Starting HTTP accelerator [fail]
storage_malloc: max size 1024 MB.
Message from VCC-compiler:
Expected '(' got ';'
(program line 341), at
(input Line 43 Pos 22)
purge;
---------------------#
Running VCC-compiler failed, exit 1
VCL compilation failed
Which means that there is something wrong with purge here:
sub vcl_hit {
if (req.request == "PURGE") {
purge;
error 200 "Purged.";
}
}
I don't see anything wrong, can someone explain?
Thanks!