perf: don't perform an explicit setup when using the file cache

the automated partial setup does it's job already

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2022-04-26 14:52:37 +02:00
parent 476c400c2d
commit c68fe20ac4
1 changed files with 0 additions and 2 deletions

View File

@ -29,7 +29,6 @@
*/
namespace OC\Cache;
use OC\Files\Filesystem;
use OC\Files\View;
use OCP\ICache;
use OCP\Security\ISecureRandom;
@ -53,7 +52,6 @@ class File implements ICache {
if (\OC::$server->getUserSession()->isLoggedIn()) {
$rootView = new View();
$user = \OC::$server->getUserSession()->getUser();
Filesystem::initMountPoints($user->getUID());
if (!$rootView->file_exists('/' . $user->getUID() . '/cache')) {
$rootView->mkdir('/' . $user->getUID() . '/cache');
}