[master] 416a919 Make now constant within a VCL subroutine
Federico G. Schwindt
fgsch at lodoss.net
Mon May 30 19:19:06 CEST 2016
commit 416a919023c455f261f0be9a6a74d178f0dbf403
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Mon May 30 18:05:13 2016 +0100
Make now constant within a VCL subroutine
Idea from Devon H. O'Dell (dho at fastly dot com).
diff --git a/bin/varnishd/cache/cache_vrt.c b/bin/varnishd/cache/cache_vrt.c
index a82b1e4..efb2949 100644
--- a/bin/varnishd/cache/cache_vrt.c
+++ b/bin/varnishd/cache/cache_vrt.c
@@ -292,7 +292,7 @@ VRT_r_now(VRT_CTX)
{
(void)ctx;
- return (VTIM_real());
+ return (ctx->now);
}
/*--------------------------------------------------------------------*/
More information about the varnish-commit
mailing list