We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6dd578 commit af1112dCopy full SHA for af1112d
1 file changed
lib/private/Files/Node/Root.php
@@ -389,7 +389,7 @@ public function getFirstNodeByIdInPath(int $id, string $path): ?INode {
389
// scope the cache by user, so we don't return nodes for different users
390
if ($this->user) {
391
$cachedPath = $this->pathByIdCache->get($this->user->getUID() . '::' . $id);
392
- if ($cachedPath && str_starts_with($path, $cachedPath)) {
+ if ($cachedPath && str_starts_with($cachedPath, $path)) {
393
// getting the node by path is significantly cheaper than finding it by id
394
$node = $this->get($cachedPath);
395
// by validating that the cached path still has the requested fileid we can work around the need to invalidate the cached path
0 commit comments