mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 07:10:30 +01:00
refactor: check if caches have the requested cache name
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user