Skip to content

Commit

Permalink
fix(TreeMCacheManager#remove)
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Jan 3, 2024
1 parent a37689f commit 007c23b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/TreeCacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function set(string $category, string $type, int $id, $data) {
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);
Expand Down

0 comments on commit 007c23b

Please sign in to comment.