From c2fb5fed029a77f4cdcd6a8b9a6308ef40091639 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 15 Feb 2012 14:42:37 +0100 Subject: [PATCH] use cached size for getting the size of a moved file --- lib/filecache.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.39.5