gpt4 book ai didi

varnish - 'beresp.ttl': cannot be set in method 'vcl_hit' in Varnish 4. 0

转载 作者:行者123 更新时间:2023-12-03 17:45:21 25 4
gpt4 key购买 nike

我正在尝试将旧的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

那么我该如何更新呢?

最佳答案

那是行不通的;)有一个完整的迁移指南如何从3迁移到4

https://www.varnish-cache.org/docs/trunk/whats-new/upgrading.html

这是完整列表,列出了已更改的内容以及如何修复它。

关于varnish - 'beresp.ttl': cannot be set in method 'vcl_hit' in Varnish 4. 0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27205718/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com