Skip to content

Commit

Permalink
Changed cache condition to only cache in production
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewmeyer committed Jul 19, 2018
1 parent b24acf1 commit 3689db4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ app.use(cors({
origin: '*',
}));

// Disable Redis caching when running tests
if (process.env.NODE_ENV !== 'test') {
// Disable Redis caching unless production
if (process.env.NODE_ENV === 'production') {
app.use(cache(options));
}

Expand Down

0 comments on commit 3689db4

Please sign in to comment.