mirror of https://github.com/nextcloud/server
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:
parent
476c400c2d
commit
c68fe20ac4
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue