Skip to content

Commit

Permalink
reinstate launches caching for 30sec
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewmeyer committed May 25, 2018
1 parent 7f4bbc1 commit a5f8b7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/middleware/redis.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ if (process.env.REDISCLOUD_URL) {
const redisURL = url.parse(process.env.REDISCLOUD_URL);
options = {
routes: [{
path: '/v2/launches',
expire: 30,
}, {
path: '/v2/launches/(.*)',
expire: 30,
}, {
path: '/v2/parts/(.*)',
expire: 6000,
}, {
Expand Down

0 comments on commit a5f8b7f

Please sign in to comment.