@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.
- package/dist/features/features.service.d.ts +28 -1
- package/dist/features/features.service.js +170 -13
- package/dist/features/features.service.js.map +1 -1
- package/dist/features/types/features.types.d.ts +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/products/services/products.service.js +5 -1
- package/dist/products/services/products.service.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
}
|