-
Couldn't load subscription status.
- Fork 292
Description
Background
If a stale record is served to a client and the IP-address have changed for the record, 10 seconds feels like a really long time and could give a timeout error message. Personally I would use 1-2 seconds to get an updated record available faster to the client having connection issues. I have tried to optimize my cache-size to not store too many records, but with this settings you can use a bigger cache since in the case of a changed IP-address it's all solved in 1-2 seconds without the user noticing anything.
Solution
It would be really nice to configure the optimistic cache TTL value through the config-file instead of the hard-coded 10 seconds.
Line 108 in cff4563
| const optimisticTTL = 10 |
Low hanging fruit?! :-)