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 007c23b commit 9fbb535
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Service/TreeCacheManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ 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_CHILDREN_LAYER) {
foreach ($this->caches as $cacheType => $cache) {
if ($cacheType === self::CATEGORY_CHILDREN_LAYER && count($previousFolders) > 1) {
continue;
}
$cache->remove($key);
Expand Down

0 comments on commit 9fbb535

Please sign in to comment.