From 007c23bc098aa7bd3bcfa3df4bae44262b2a4e73 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Wed, 3 Jan 2024 14:15:03 +0100 Subject: [PATCH] fix(TreeMCacheManager#remove) Signed-off-by: Marcel Klehr --- lib/Service/TreeCacheManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/TreeCacheManager.php b/lib/Service/TreeCacheManager.php index 2e58d2be..d5d79976 100644 --- a/lib/Service/TreeCacheManager.php +++ b/lib/Service/TreeCacheManager.php @@ -138,7 +138,7 @@ class TreeCacheManager implements IEventListener { public function remove(string $type, int $id, array $previousFolders = []): void { $key = $this->getCacheKey($type, $id); foreach ($this->caches as $type => $cache) { - if (count($previousFolders) !== 0 && ($type === self::CATEGORY_CHILDORDER || $type === self::CATEGORY_CHILDREN_LAYER)) { + if (count($previousFolders) !== 0 && $type === self::CATEGORY_CHILDREN_LAYER) { continue; } $cache->remove($key);