Skip to content

Commit fc9e77f

Browse files
- enable cache expiry
1 parent 0e827c0 commit fc9e77f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

functions/get-index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ module.exports.handler = middy(handler)
115115
.use(sampleLogging({ sampleRate: 0.01 }))
116116
.use(ssm({
117117
cache: true,
118+
cacheExpiryInMillis: 3 * 60 * 1000, // 3 mins
118119
names: {
119120
restaurants_api: `/bigmouth/${STAGE}/restaurants_api`,
120121
orders_api: `/bigmouth/${STAGE}/orders_api`,

0 commit comments

Comments
 (0)