A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.
JavaScript 3d-globecesiumflight-trackinggeospatialgeospatial-intelligencegisosintphotogrammetrysatellite-trackingspatial-intelligencewebglworldview
Correct the remaining permanent-cache comments
Sameh Khamis761953b0bf49
diff --git a/server/providers/aircraft/enrichment.js b/server/providers/aircraft/enrichment.jsindex 9b7c1b1bb..4c069fa7f 100644--- a/server/providers/aircraft/enrichment.js+++ b/server/providers/aircraft/enrichment.js@@ -7,8 +7,9 @@ const ADSBDB_MAX_RESPONSE_BYTES = 1024 * 1024;/*** adsbdb.com enrichment proxy: callsign → route (airline + origin/destination* airports) and hex → aircraft type/registration. Free community API — cached- * aggressively: ONE upstream request per new key ever (404s negative-cached),- * persisted to disk so restarts don't re-hammer it. Adapted from skylight+ * aggressively: successes and 404s are kept per key for 24 hours (TTL_MS) and+ * persisted to disk so restarts don't re-hammer it; other failures are not+ * cached. Adapted from skylight* (MIT) server/src/enrich/routes.ts.*/export function adsbdbProxy() {diff --git a/src/layers/flights/policy.js b/src/layers/flights/policy.jsindex 40cf8879a..2c015e6c9 100644--- a/src/layers/flights/policy.js+++ b/src/layers/flights/policy.js@@ -243,7 +243,7 @@ export const ENRICH_DISPATCH_GAP_MS = 200;// of drip, so the backlog can't outgrow a poll and re-sorts fresh), and// - a ROLLING token-bucket budget (below) bounding the sustained ambient// request rate (repeat sessions resolve instantly from the proxy's-// permanent disk cache).+// 24-hour disk cache).// Fail-silent by contract: the sweep never throws into the poll loop, never// blocks rendering, and never touches tracking state. When a type answer// lands, _requestTypeEnrichment's callback swaps the billboard glyph + scale@@ -257,7 +257,7 @@ export const ENRICH_DISPATCH_GAP_MS = 200;// ENRICH_AMBIENT_REFILL_TOKENS every ENRICH_AMBIENT_REFILL_WINDOW_MS, clamped// at the ceiling (no banking beyond one bucket). Numbers: 150 / 5 min sustains// 0.5 req/s worst case — an order of magnitude under the 5/s drip that (with-// the 4-concurrent limit + the proxy's permanent disk cache) is the REAL+// the 4-concurrent limit + the proxy's 24-hour disk cache) is the REAL// politeness bound on adsbdb; the 300 ceiling preserves the old first-look// burst so a fresh region still classifies quickly./** Bucket ceiling: max ambient tokens held at once (= the initial burst). */