From 8339aeab9a84afe2d020593b798251a2a583f70e Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Tue, 4 Nov 2014 12:29:42 +0100 Subject: [PATCH] Only rescan trash folder when checking deleted versions This fix prevents the file scanner to rescan the WHOLE storage and reset the etags by mistake. Backport of 97a51c46eddf4c1e8c691eea96dd762425ce17ca from master --- apps/files_trashbin/lib/trashbin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_trashbin/lib/trashbin.php b/apps/files_trashbin/lib/trashbin.php index e97bf25d025..8aea6d1a5e3 100644 --- a/apps/files_trashbin/lib/trashbin.php +++ b/apps/files_trashbin/lib/trashbin.php @@ -886,7 +886,7 @@ class Trashbin { //force rescan of versions, local storage may not have updated the cache /** @var \OC\Files\Storage\Storage $storage */ list($storage, ) = $view->resolvePath('/'); - $storage->getScanner()->scan(''); + $storage->getScanner()->scan('files_trashbin'); if ($timestamp) { // fetch for old versions -- 2.39.5