Question/Help about Map and LUA


I am using consul-template to dynamically update a map file. I am then using that map file in an ACL LUA fetch function. What I have found is that if I load the map file outside of the function, i.e. the init phase, the map file is never updated when consul-template updates the file on disk and reloads the haproxy config.

So my question is, do I just have to load the map file everytime I call the ACL function? Or is there a function I can call (that I have yet to find) that refreshes the in memory map when the haproxy cfg is reloaded? How big of a performance hit is it to load the map file for every request?

Thanks in advance