Actually no, ngx.time() is not expensive, it uses the cached value stored in the request so it doesn't need to make a syscall.
> On Sep 9, 2016, at 06:33, itpp2012 <nginx-fo...@forum.nginx.org> wrote: > > Good, keep in mind that "ngx.time()" can be expensive, it would be advisable > to use a global var to store time and update this var once every hour. > > Posted at Nginx Forum: > https://forum.nginx.org/read.php?2,269438,269444#msg-269444 > > _______________________________________________ > nginx mailing list > nginx@nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx