feat: add CW callback route and optimize cache refresh workflows
This commit is contained in:
@@ -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 ------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user