fix(TreeMCacheManager#remove)

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2024-01-03 14:15:03 +01:00
parent a37689fbdf
commit 007c23bc09
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ class TreeCacheManager implements IEventListener {
public function remove(string $type, int $id, array $previousFolders = []): void { public function remove(string $type, int $id, array $previousFolders = []): void {
$key = $this->getCacheKey($type, $id); $key = $this->getCacheKey($type, $id);
foreach ($this->caches as $type => $cache) { 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; continue;
} }
$cache->remove($key); $cache->remove($key);