In message <canzwjw5t+q0iea-5rn6xriuy6kw7i8auq-z_vgj5ubkw9_g...@mail.gmail.com>
, AD writes:

> I am trying to use the PRIV_CALL capability of the vmods in order to cache
>an expensive operation used later in the vcl itself. 

That is not how it works.

PRIV_CALL is for caching things for the next time this call is executed.

The canonical example is a caching a compiled regexp.

What you need is a "PRIV_SESS" or "PRIV_REQ" variable, and I'm beating
my head against the wall trying to find the best way to implement
that as we're speaking...


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[email protected]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to