Node.js based forum software built for the modern web
fix: cache key collision
Barış Soner Uşaklıe40af441c966
diff --git a/src/categories/index.js b/src/categories/index.jsindex 4f74c6b6d1..de3f329544 100644--- a/src/categories/index.js+++ b/src/categories/index.js@@ -243,14 +243,15 @@ Categories.getChildrenCids = async function (rootCid) {await recursive(keys);}const key = 'cid:' + rootCid + ':children';- const childrenCids = cache.get(key);+ const cacheKey = 'cache:' + key;+ const childrenCids = cache.get(cacheKey);if (childrenCids) {return childrenCids.slice();}await recursive(key);allCids = _.uniq(allCids);- cache.set(key, allCids);+ cache.set(cacheKey, allCids);return allCids.slice();};