mirror of https://github.com/nextcloud/bookmarks
fix(TreeMCacheManager#remove)
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
a37689fbdf
commit
007c23bc09
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue