diff --git a/index.js b/index.js index d5dbd00884..83c7fa42ad 100644 --- a/index.js +++ b/index.js @@ -78,6 +78,11 @@ if (config.cacheType === 'memory') { }, }) ); +} else { + app.context.cache = { + get: () => null, + set: () => null, + }; } // router