3.5 KiB
3.5 KiB
Regional cache generation and publication
Scope: products/stores/store-detail/banners caches, availability/slot caches, regional version rows, discovery KV, debounced generation and client persisted caches. Record DB value, served version and elapsed time.
| ID | Priority | Action / input | Expected result |
|---|---|---|---|
| CACHE-01 | P0 | Fresh A customer discovery/cache load. | Correct bound request, products_version_num/availability/slot fields and region paths; no v-undefined. |
| CACHE-02 | P0 | Structural product/store/tag change in A. | A catalog files advance/publish; B regional records unchanged. |
| CACHE-03 | P0 | Price/stock/offer/suspension edit in A. | Correct A availability version and data; no stale orderable invalid SKU. |
| CACHE-04 | P0 | Slot full/inactive/time/membership change. | Slot/next-delivery/cart choices converge within deadline. |
| CACHE-05 | P1 | Global structural change and regional market overrides. | All intended region catalogs refresh; market-specific values preserved. |
| CACHE-06 | P1 | Rapid A/B edits in debounce window. | Both pending regions published; final write not lost. |
| CACHE-07 | P1 | Several same-region writes while generation running. | Later write triggers/retains needed publication; no stale final snapshot. |
| CACHE-08 | P1 | Missing version row/new region. | Version seeded/incremented deterministically; one row per key/region. |
| CACHE-09 | P1 | Missing/corrupt discovery KV in approved fixture. | Rebuilt for correct bound; no foreign fallback. |
| CACHE-10 | P0 | Product file ready, availability old/missing/new or wrong region. | No unsafe zero price/in-stock or mixed-region purchasable catalog. |
| CACHE-11 | P1 | Storage/object-write fails during generation. | Failed version not falsely claimed complete; repair/retry coherent. |
| CACHE-12 | P1 | Purge/provider error or slow publication. | Explicit failure/deadline evidence; eventual repair, no eternal UI loading. |
| CACHE-13 | P1 | Fresh vs already-open client after update. | Both converge; no restart/storage-clear prerequisite. |
| CACHE-14 | P1 | Persisted client cache corrupt/outdated schema. | Safe discard/refetch; cart identities retained where valid. |
| CACHE-15 | P0 | Rapid region switch with in-flight A requests after selecting B. | Old response cannot overwrite B store/state. |
| CACHE-16 | P1 | App/browser restart offline with persisted data. | Supported cached browse, explicit stale/offline purchase restriction. |
| CACHE-17 | P1 | Product deleted while related cache generation pending. | All live surfaces eventually omit it; history remains independent. |
| CACHE-18 | P1 | Store detail and aggregate catalog fetched at same version. | Consistent membership/assets; no unrelated store content. |
| CACHE-19 | P1 | Concurrent version increments in A. | Unique monotonic final version and corresponding served data. |
| CACHE-20 | P2 | Client cache/poll interval, repeated refetch under slow network. | No uncontrolled request storm; bounded retries and accurate status. |
| CACHE-21 | P0 | Public JSON/private data inspection. | No user/staff credentials, address/order/complaint leakage in static catalog. |
| CACHE-22 | P1 | Deleted/deactivated region metadata or bound priority change. | Correct discovery rebuild and bound-scoped cache key; no stale fee. |
Paths must match backend builders, including catalog's API-cache-key prefix and availability/slots paths. Deadline breaches are failures with version evidence, not assumptions based on a UI screenshot.