Discussion:
Lua Plugin Question.
Chou, Peter
2017-05-22 19:48:25 UTC
Permalink
Hi,

I am unable to over-ride the negative caching lifetime for a transaction via the Lua plugin.

In the code, I found this (under 6.2.1 and master) --
ts_lua_http_config.c: TS_LUA_CONFIG_HTTP_NEGATIVE_CACHING_ENABLED = TS_CONFIG_HTTP_NEGATIVE_CACHING_ENABLED,
ts_lua_http_config.c: TS_LUA_CONFIG_HTTP_NEGATIVE_CACHING_LIFETIME = TS_CONFIG_HTTP_CACHE_WHEN_TO_REVALIDATE,

Shouldn't the two sides match?

After making the obvious correction it seems to work. If there are no issues or other reason for this I will open a PR.

Thanks,
Peter
Shu Kit Chan
2017-05-22 20:32:32 UTC
Permalink
Great catch! Please submit a PR. Thanks.
Post by Chou, Peter
Hi,
I am unable to over-ride the negative caching lifetime for a transaction via
the Lua plugin.
In the code, I found this (under 6.2.1 and master) --
ts_lua_http_config.c: TS_LUA_CONFIG_HTTP_NEGATIVE_CACHING_ENABLED
= TS_CONFIG_HTTP_NEGATIVE_CACHING_ENABLED,
ts_lua_http_config.c: TS_LUA_CONFIG_HTTP_NEGATIVE_CACHING_LIFETIME
= TS_CONFIG_HTTP_CACHE_WHEN_TO_REVALIDATE,
Shouldn’t the two sides match?
After making the obvious correction it seems to work. If there are no issues
or other reason for this I will open a PR.
Thanks,
Peter
Continue reading on narkive:
Loading...