Authored by 陈峰

cache

... ... @@ -35,7 +35,7 @@ const routes = [
},
];
const isDev = false;//process.env.NODE_ENV === 'development' || !process.env.NODE_ENV;
const isDev = process.env.NODE_ENV === 'development' || !process.env.NODE_ENV;
let renderer;
let template = fs.readFileSync(path.join(__dirname, '../../src/index.html'), 'utf-8');
... ... @@ -44,10 +44,6 @@ const microCache = LRU({ // eslint-disable-line
maxAge: 2000
});
const isCacheable = (req) => {
console.log(req.route.path.toString())
return false;
};
const getContext = (req) => {
return {
... ...