Merge branch 'feature/remove-memcached' into feature/docker
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -13,7 +13,7 @@ const RedisStore = redis(session); | @@ -13,7 +13,7 @@ const RedisStore = redis(session); | ||
13 | */ | 13 | */ |
14 | function yohoSession(opts) { | 14 | function yohoSession(opts) { |
15 | return (req, res, next) => { | 15 | return (req, res, next) => { |
16 | - let notUseRedis = _.get(req.app.locals.pc, 'session.removeRedis', false); | 16 | + let notUseRedis = _.get(req.app.locals.pc, 'session.removeMemcached', false); // 开关字段暂时复用原字段名 |
17 | 17 | ||
18 | opts.backSession = opts.backSession || 'session2'; | 18 | opts.backSession = opts.backSession || 'session2'; |
19 | if (req.session && !notUseRedis) { | 19 | if (req.session && !notUseRedis) { |
-
Please register or login to post a comment