import api from '../lib/api';

export default (req, res, next) => {

  api
    .get(`/homepage`, { cache: 60 * 60 }) // cache for one hour
    .then(homepage => {
      req.homepage = homepage;
    })
    .then(next)
    .catch(next);
}

@@ -107,16 +107,20 @@
 60 * 60 
+* 6 
 %7D) // ca
@@ -131,16 +131,62 @@
 for 
-one hour
+six hours; increasing to see if it helps with downtime
 %0A   

Increase cache from 1 hour to 6 hours (#795)