mirror of
https://github.com/nextcloud/server.git
synced 2026-05-26 11:22:28 -04:00
Merge pull request #23049 from nextcloud/backport/23034/stable19
[stable19] Fix numeric folders throwing on markDirty
This commit is contained in:
commit
93dbaed5c3
1 changed files with 12 additions and 0 deletions
|
|
@ -38,4 +38,16 @@ class CachingTree extends Tree {
|
|||
}
|
||||
$this->cache[trim($path, '/')] = $node;
|
||||
}
|
||||
|
||||
public function markDirty($path) {
|
||||
// We don't care enough about sub-paths
|
||||
// flushing the entire cache
|
||||
$path = trim($path, '/');
|
||||
foreach ($this->cache as $nodePath => $node) {
|
||||
$nodePath = (string) $nodePath;
|
||||
if ('' === $path || $nodePath == $path || 0 === strpos($nodePath, $path.'/')) {
|
||||
unset($this->cache[$nodePath]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue