From 7282ec528617341defb7943d68431f1bc5d17369 Mon Sep 17 00:00:00 2001 From: Cameron Fischer Date: Fri, 10 Sep 2021 16:17:35 -0400 Subject: [PATCH] Fix getCacheForTiddler to cache falsy values (#5413) * getCacheForTiddler can cache falsy values * Switch to "!== undefined" for getCacheForTiddler --- core/modules/wiki.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/wiki.js b/core/modules/wiki.js index 5dd772f44..dc9a12aad 100755 --- a/core/modules/wiki.js +++ b/core/modules/wiki.js @@ -844,7 +844,7 @@ exports.clearGlobalCache = function() { exports.getCacheForTiddler = function(title,cacheName,initializer) { this.caches = this.caches || Object.create(null); var caches = this.caches[title]; - if(caches && caches[cacheName]) { + if(caches && caches[cacheName] !== undefined) { return caches[cacheName]; } else { if(!caches) {