diff --git a/files/nats_registration_listener.py b/files/nats_registration_listener.py index 76b3880..53a5ce4 100644 --- a/files/nats_registration_listener.py +++ b/files/nats_registration_listener.py @@ -43,7 +43,7 @@ NB_TOKEN = "7648e4f5ee370cda7834682e61b47c2ee8e95623" # keep as provided NB_TIMEOUT = 3.0 # seconds per HTTP GET # Cache for MAC -> NetBox lookup result (seconds). Keeps NetBox load down under chatty devices. -NB_LOOKUP_CACHE_TTL = float(os.environ.get("NB_LOOKUP_CACHE_TTL", "10.0")) +NB_LOOKUP_CACHE_TTL = float(os.environ.get("NB_LOOKUP_CACHE_TTL", "60.0")) NB_LOOKUP_CACHE = {} # mac_norm -> (expires_monotonic, cached_tuple) # =========================