ChemPal Documentation - v1.6.0
    Preparing search index...

    Function clearSupplierProductDataCache

    • Empties the supplier product-data cache.

      Returns Promise<void>

      Resolves once the store is empty.

      await clearSupplierProductDataCache();
      
      export async function clearSupplierProductDataCache(): Promise<void> {
      try {
      const db = await getDB();
      await db.clear(IDB_STORE.SUPPLIER_PRODUCT_DATA_CACHE);
      } catch (error) {
      logger.error('Failed to clear supplier product data cache from IndexedDB', { error });
      }
      }