Courier
The product page calls the pricing service on every render. Cache prices for 60 s, keyed by SKU and currency.
- SearchedgetPrice( in src/
- Readsrc/pricing/client.ts
- Readsrc/pages/product.tsx
- Ranpnpm test pricing · 14 passed
Edited 3 files+71−3
Prices are cached for 60 s per SKU and currency, so a product page now makes one pricing call a minute instead of one per render. The new test covers a hit and an expired entry.