@ductape/sdk 0.1.129 → 0.1.131

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1494,7 +1494,11 @@ class ProductsBuilderService {
1494
1494
  }
1495
1495
  const component = await this.productApi.fetchProductComponentByTag(this.product_id, 'env', slug, this.getUserAccess());
1496
1496
  const out = component;
1497
- if (this.product_id)
1497
+ // Only cache genuine hits. ProductBuilder instances are cached by the proxy across
1498
+ // requests (see refreshProductState()); caching a null/negative lookup here would poison
1499
+ // envCache permanently for that env slug — every later call keeps returning the stale null
1500
+ // even after the env demonstrably exists, with no TTL or invalidation to recover from it.
1501
+ if (this.product_id && out)
1498
1502
  this.envCache.set(slug, out);
1499
1503
  return out;
1500
1504
  }