Authored by 周少峰

use dns cache

... ... @@ -30,6 +30,7 @@ const fp = require('lodash/fp');
const pkg = require('./package.json');
const app = express();
const helpers = global.yoho.helpers;
require('dnscache')({enable: true, ttl: 300, cachesize: 1000});
app.disable('x-powered-by');
... ...
... ... @@ -32,6 +32,7 @@
"connect-multiparty": "^2.0.0",
"cookie-parser": "^1.4.3",
"csurf": "^1.9.0",
"dnscache": "^1.0.1",
"express": "^4.13.1",
"handlebars": "4.0.5",
"lodash": "^4.13.1",
... ...