diff --git a/lib/filecache.php b/lib/filecache.php index 921d4a2790..6ae2f8253d 100644 --- a/lib/filecache.php +++ b/lib/filecache.php @@ -380,8 +380,7 @@ class OC_FileCache{ $fullOldPath=$root.$oldPath; $fullNewPath=$root.$newPath; if(($id=self::getFileId($fullOldPath))!=-1){ - $oldInfo=self::get($fullOldPath); - $oldSize=$oldInfo['size']; + $oldSize=self::getCachedSize($oldPath,$root); }else{ return; }