The product-detail cache key, from getProductIdentityKey.
await deleteSupplierProductDataCacheEntry(getProductIdentityKey(product.cacheKey, product.supplier));
export async function deleteSupplierProductDataCacheEntry(cacheKey: string): Promise<void> {
try {
const db = await getDB();
await db.delete(IDB_STORE.SUPPLIER_PRODUCT_DATA_CACHE, cacheKey);
} catch (error) {
logger.error('Failed to delete supplier product data cache entry from IndexedDB', { error });
}
}
Deletes a single product-detail cache entry by its identity key. Used to evict one product from the cache (e.g. the "Remove Product from Cache" context-menu action) so its detail data is re-fetched fresh the next time it is surfaced, without touching the visible results.