mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-05-27 06:22:56 +08:00
fixed cache bug when in production env
This commit is contained in:
@@ -88,7 +88,7 @@ exports.loadConfig = function(basepath, server, fn) {
|
||||
if (server.options && server.options.env === 'development') {
|
||||
__cacheExpiration = Date.now() + CACHE_EXPIRE_TIME_DEV;
|
||||
} else {
|
||||
__cacheExpiration = Date.now + CACHE_EXPIRE_TIME_PROD;
|
||||
__cacheExpiration = Date.now() + CACHE_EXPIRE_TIME_PROD;
|
||||
}
|
||||
fn(null, result);
|
||||
}, function(err) {
|
||||
|
||||
Reference in New Issue
Block a user