From 14ec4585d706e24464f864a2a7d6b8bb7ff6733c Mon Sep 17 00:00:00 2001 From: Matchu Date: Fri, 23 Apr 2021 12:12:15 -0700 Subject: [PATCH] Oops, fix stale-while-revalidate for modeling data Huh, I used max-age=1, which suggests to me that I _meant_ to put SWR in here too but just forgot! Oh well lol, fixed now! --- 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 a0cbddc..919aff3 100644 --- a/src/server/types/Item.js +++ b/src/server/types/Item.js @@ -70,7 +70,7 @@ const typeDefs = gql` # NOTE: Most color IDs won't be accepted here. Either pass the ID of a # major special color like Baby (#6), or leave it blank for standard # bodies like Blue, Green, Red, etc. - speciesThatNeedModels(colorId: ID): [Species!]! @cacheControl(maxAge: 1) + speciesThatNeedModels(colorId: ID): [Species!]! @cacheControl(maxAge: 1, staleWhileRevalidate: ${oneHour}) # Return a single ItemAppearance for this item. It'll be for the species # with the smallest ID for which we have item appearance data, and a basic