【发布时间】:2014-11-30 02:50:48
【问题描述】:
我正在尝试将我的旧 Varnish 配置导入到 4.0 版。
sub vcl_hit {
if (req.method == "PURGE") {
set beresp.ttl = 0s;
return (synth(200, "Purged."));
}
}
我得到的错误:
Message from VCC-compiler:
'beresp.ttl': cannot be set in method 'vcl_hit'.
At: ('input' Line 135 Pos 15)
set beresp.ttl = 0s;
--------------##########------
Running VCC-compiler failed, exited with 2
那么我该如何更新呢?
【问题讨论】:
标签: varnish varnish-vcl