Skip to content

Commit b2a349c

Browse files
committed
Bump TTL for URL lookups in with-routes middleware to 24 hours
1 parent 33b574d commit b2a349c

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/chilly-melons-go.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@bigcommerce/catalyst-core": patch
3+
---
4+
5+
Bump TTL for URL lookups in with-routes middleware to 24 hours

core/middlewares/with-routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ const updateRouteCache = async (
183183
): Promise<RouteCache> => {
184184
const routeCache: RouteCache = {
185185
route: await getRoute(pathname, channelId),
186-
expiryTime: Date.now() + 1000 * 60 * 30, // 30 minutes
186+
expiryTime: Date.now() + 1000 * 60 * 60 * 24, // 24 hours
187187
};
188188

189189
event.waitUntil(kv.set(kvKey(pathname, channelId), routeCache));

0 commit comments

Comments
 (0)