First cached RequestResolver hit is not caching for the first request
I am playing with Request resolvers with this code:
This
Here are some logs I am seeing when doing the same idempotent request over and over:
So as you can see the first request has no caching and neither does the last one but am not sure why or what could cause this? I am sure I have it all set up correctly following the docs.
This
withCache is built at request runtime. I hit my endpoint once where this identify function gets invoked multiple times and I see that it actually gets executed many times as if there is no cache. The second time I hit it, I get one execution which is basically a cache hit. After a little bit of arbitrary time the same thing happens again where an initial request executes many identify's but the following hits are cached.Here are some logs I am seeing when doing the same idempotent request over and over:
So as you can see the first request has no caching and neither does the last one but am not sure why or what could cause this? I am sure I have it all set up correctly following the docs.
