From a73427af1e5faac54558491f31de7429870ac370 Mon Sep 17 00:00:00 2001 From: Matchu Date: Sat, 3 Apr 2021 14:29:37 -0700 Subject: [PATCH] Add 1-hour caching to wakaValueText One day is too long! I'd prefer 1min for just the value itself, but I don't want to bog down all the other metadata with it, it's not _essential_ for it to be faster. --- src/server/types/Item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/types/Item.js b/src/server/types/Item.js index 0cb3a3c..9147d93 100644 --- a/src/server/types/Item.js +++ b/src/server/types/Item.js @@ -28,7 +28,7 @@ const typeDefs = gql` # This item's capsule trade value as text, according to wakaguide.com, as a # human-readable string. Will be null if the value is not known, or if # there's an error connecting to the data source. - wakaValueText: String + wakaValueText: String @cacheControl(maxAge: ${oneHour}) currentUserOwnsThis: Boolean! @cacheControl(scope: PRIVATE) currentUserWantsThis: Boolean! @cacheControl(scope: PRIVATE)