geoip variables evaluation vs map

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

geoip variables evaluation vs map

rnburn
Hello!
When using variables via map directive they are evaluated when they are
used.
My question is if variables from geoip module like $geoip_country_code are
evaluated only when they are used, like map or every time?

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,274078,274078#msg-274078

_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx
Reply | Threaded
Open this post in threaded view
|

Re: geoip variables evaluation vs map

Maxim Dounin
Hello!

On Fri, May 05, 2017 at 08:27:34AM -0400, beatnut wrote:

> Hello!
> When using variables via map directive they are evaluated when they are
> used.
> My question is if variables from geoip module like $geoip_country_code are
> evaluated only when they are used, like map or every time?

Only when they are used.

--
Maxim Dounin
http://nginx.org/
_______________________________________________
nginx mailing list
[hidden email]
http://mailman.nginx.org/mailman/listinfo/nginx