diff --git a/lib/private/files/cache/cache.php b/lib/private/files/cache/cache.php index d39b59b23e..f377e9777d 100644 --- a/lib/private/files/cache/cache.php +++ b/lib/private/files/cache/cache.php @@ -259,8 +259,9 @@ class Cache { } // The file was created in the mean time + $id = $this->getId($file); $this->update($id, $data); - return $this->getId($file); + return $id; } }