Files
Jeremy a353b35a72 fix: address insights review — per-product correctness, quiet cache write, lazy retry rebuild
- Remove once() from ProductInsights::for(): the static call-site memoized
  globally, so resolving insights for a second product in one request returned
  the first product's data. The persistent insights_cache already prevents
  recompute, so once() only added the bug.
- ProductTransformer delegates to ProductInsights::for() instead of duplicating
  the cache-vs-compute branch.
- RetryUrlPriceJob rebuilds price/insights caches only on a non-null scrape
  result; a failed retry changes no data, so skip the heavy rebuild.
- NotifyPriceChangeListener: add $tries/$timeout for the queued rebuild.
- Product::updateInsightsCache() uses forceFill()->saveQuietly() so a pure
  cache write doesn't re-trigger the saving hook (next_check_at) or updated hook.
- Add regression test: for() returns distinct insights per product in one request.
2026-06-21 01:23:09 +10:00
..