feat: add CW callback route and optimize cache refresh workflows

This commit is contained in:
2026-03-03 19:46:48 -06:00
parent 6d935e7180
commit a048e1e824
28 changed files with 3268 additions and 294 deletions
+4 -4
View File
@@ -11,12 +11,12 @@ const DAY_MS = 24 * 60 * 60 * 1000;
describe("computeProductsCacheTTL", () => {
// -- Constants ----------------------------------------------------------
test("PRODUCTS_TTL_HOT is 15 seconds", () => {
expect(PRODUCTS_TTL_HOT).toBe(15_000);
test("PRODUCTS_TTL_HOT is 45 seconds", () => {
expect(PRODUCTS_TTL_HOT).toBe(45_000);
});
test("PRODUCTS_TTL_LAZY is 30 minutes", () => {
expect(PRODUCTS_TTL_LAZY).toBe(1_800_000);
test("PRODUCTS_TTL_LAZY is 20 minutes", () => {
expect(PRODUCTS_TTL_LAZY).toBe(1_200_000);
});
// -- Won/Lost status set ------------------------------------------------