1. Does vernemq use node's in memory to store auth_on_register, auth_on_publish, auth_on_subscribe hook call data ?
2. What is the expected response for auth_on_register hook so that the call gets stored in cache?
I return the following response to verne
{
"publish_acl":{}
"subscribe_acl":{}
"result":"ok"
}
along with
cache-control: max-age=180
I am able to see entries in verne cache but I see equivalent number of misses too.
FYI the peer port keeps changing on every auth_on_register. Is this the reason for the cache misses?
Please help