mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-17 18:10:42 +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'),
|
local: require('../../cache'),
|
||||||
};
|
};
|
||||||
caches = await plugins.hooks.fire('filter:admin.cache.get', caches);
|
caches = await plugins.hooks.fire('filter:admin.cache.get', caches);
|
||||||
if (!caches[req.query.name]) {
|
if (!caches.hasOwnProperty(req.query.name)) {
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user