Skip to content

Commit a5f8b7f

Browse files
committed
reinstate launches caching for 30sec
1 parent 7f4bbc1 commit a5f8b7f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/middleware/redis.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ if (process.env.REDISCLOUD_URL) {
1111
const redisURL = url.parse(process.env.REDISCLOUD_URL);
1212
options = {
1313
routes: [{
14+
path: '/v2/launches',
15+
expire: 30,
16+
}, {
17+
path: '/v2/launches/(.*)',
18+
expire: 30,
19+
}, {
1420
path: '/v2/parts/(.*)',
1521
expire: 6000,
1622
}, {

0 commit comments

Comments
 (0)