2014-11-29 4 views
1

이전 Varnish 구성을 버전 4.0으로 가져 오려고합니다.'beresp.ttl': Varnish 4.0의 'vcl_hit'메서드에서 설정할 수 없습니다.

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 

그래서 어떻게 그런를 업데이트하는 방법은 무엇입니까?

답변

2

그게 전부가 작동하지, 여기에 3에서 4

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

로 마이그레이션하는 방법 완벽한 마이그레이션 가이드가하는) 완전한 변경된 내용을 목록과 어떻게 고칠 수 있습니다.

+0

그 URL은 이제 깨진 것 같습니다. 이게 작동합니다 - https://varnish-cache.org/docs/4.0/whats-new/upgrading.html –

+0

@AlexVolkov 네 말이 맞지만 새 것을 찾을 수 없습니다. – Stony