@ductape/sdk 0.1.130 → 0.1.132

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
  }
@@ -1966,7 +1970,7 @@ class ProductsBuilderService {
1966
1970
  hasEndpoint: !!env.endpoint,
1967
1971
  provisionStatus: env.provisionStatus,
1968
1972
  });
1969
- const exists = await this.fetchEnv(env.slug);
1973
+ const exists = await this.fetchEnv(env.slug, true);
1970
1974
  if (!exists) {
1971
1975
  throw new Error(`Env ${env.slug} does not exist`);
1972
1976
  }