...
|
...
|
@@ -56,12 +56,11 @@ const handlerError = (err = {}, req, res, next) => { |
|
|
} else if (err.code === 500) {
|
|
|
return res.redirect('/error/500');
|
|
|
}
|
|
|
console.log(err)
|
|
|
return next(err);
|
|
|
};
|
|
|
|
|
|
const getCacheKey = (urlPath, cackeKey = '') => {
|
|
|
const urlObj = url.parse(urlPath);
|
|
|
const urlObj = url.parse(urlPath);
|
|
|
|
|
|
return md5(cackeKey
|
|
|
.replace('$url', urlObj.pathname)
|
...
|
...
|
|