From bc61dfaae01541c425678c11038fd957348db91d Mon Sep 17 00:00:00 2001 From: Jon Jensen Date: Fri, 27 Oct 2023 14:05:17 -0700 Subject: [PATCH] Add comment re: definitions cache --- src/http/get-benefits/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/http/get-benefits/index.js b/src/http/get-benefits/index.js index 76dcae4..7bfc9c5 100644 --- a/src/http/get-benefits/index.js +++ b/src/http/get-benefits/index.js @@ -13,6 +13,7 @@ let definitions = {}; exports.handler = arc.http.async(async (req) => { // If definitions is empty, fetch it from S3. if (Object.keys(definitions).length === 0) { + console.log("Definitions cache is cold. Fetching definitions from S3."); definitions = await getDefinitions(); } @@ -32,7 +33,7 @@ exports.handler = arc.http.async(async (req) => { statusCode: 204, }; } - + const data = { header: "Apply for more benefits!", tagline: "You might be able to get:",