Node.js based forum software built for the modern web
refactor: check if caches have the requested cache name
Barış Soner Uşaklı38520769a3c8
diff --git a/src/controllers/admin/cache.js b/src/controllers/admin/cache.jsindex 2faad03fc2..f46d7fd41e 100644--- a/src/controllers/admin/cache.js+++ b/src/controllers/admin/cache.js@@ -52,7 +52,7 @@ cacheController.dump = async function (req, res, next) {local: require('../../cache'),};caches = await plugins.hooks.fire('filter:admin.cache.get', caches);- if (!caches[req.query.name]) {+ if (!caches.hasOwnProperty(req.query.name)) {return next();}