Authored by 周少峰

Merge branch 'feature/qps'

... ... @@ -5,9 +5,9 @@
*/
'use strict';
if (process.env.USE_APM === '1' && process.env.NODE_ENV === 'production') {
require('oneapm');
}
// if (process.env.USE_APM === '1' && process.env.NODE_ENV === 'production') {
// require('oneapm');
// }
const config = require('./config/common');
... ... @@ -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",
... ...