Commit 5a0f0093 authored by Mark Harding's avatar Mark Harding
Browse files

(chore): remove caching middleware to test OOM error

parent 37f6a355
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -135,12 +135,12 @@ const cache = () => {
  };
};

app.get('node-cache-stats', (req, res) => {
app.get('/node-cache-stats', (req, res) => {
  res.sendResponse(myCache.getStats());
});

// All regular routes use the Universal engine
app.get('*', cache(), (req, res) => {
app.get('*', (req, res) => {
  const http =
    req.headers['x-forwarded-proto'] === undefined
      ? 'http'