From: Robin Appelman Date: Wed, 15 Feb 2012 13:42:37 +0000 (+0100) Subject: use cached size for getting the size of a moved file X-Git-Tag: v4.0.0beta~71^2~5^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c2fb5fed029a77f4cdcd6a8b9a6308ef40091639;p=nextcloud-server.git use cached size for getting the size of a moved file --- diff --git a/lib/filecache.php b/lib/filecache.php index 921d4a27902..6ae2f8253db 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; }