Welcome! Log In Create A New Profile

Advanced

Working with PURGE

Posted by teewhey 
Working with PURGE
October 01, 2013 02:27AM
I'm new and trying to play with the PURGE option which I read from https://www.varnish-cache.org/docs/3.0/tutorial/purging.html?highlight=purge

I tried to incorporate the VCL config listed in the page but somehow getting this error when I try to load the new vcl.


======================================
Message from VCC-compiler:
Expected '(' got ';'
(program line 324), at
(input Line 111 Pos 22)
purge;
---------------------#
Running VCC-compiler failed, exit 1VCL compilation failed
======================================

Here is the excerpt from my VCL config file. Any idea??


109 sub vcl_hit {
110 if (req.request == "PURGE") {
111 purge;
112 error 200 "Purged.";
113 }
114 }
115
116 sub vcl_miss {
117 if (req.request == "PURGE") {
118 purge;
119 error 200 "Purged.";
120 }
121 }
Re: Working with PURGE
October 01, 2013 01:00PM
Just ignore this.. Just realised I posted in the wrong forum.. Stupid me....
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 123
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready