mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-09-30 22:28:00 -05:00
Set memory cache default to null when not using redis
This commit is contained in:
@@ -30,7 +30,7 @@ async function getCachedFile(fileName, encoding) {
|
||||
let cachedFile;
|
||||
|
||||
if (disabledFeatures.redis) {
|
||||
cachedFile = memoryCache[fileName];
|
||||
cachedFile = memoryCache[fileName] || null;
|
||||
} else {
|
||||
cachedFile = await client.get(fileName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user