summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/Filesystem.php19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/private/Files/Filesystem.php b/lib/private/Files/Filesystem.php
index 61319a8cbaa..39c5fd3ab4a 100644
--- a/lib/private/Files/Filesystem.php
+++ b/lib/private/Files/Filesystem.php
@@ -441,8 +441,6 @@ class Filesystem {
$home = \OC\Files\Filesystem::getStorage($user);
- self::mountCacheDir($user);
-
// Chance to mount for other storages
/** @var \OC\Files\Config\MountProviderCollection $mountConfigManager */
$mountConfigManager = \OC::$server->getMountProviderCollection();
@@ -479,23 +477,6 @@ class Filesystem {
}
/**
- * Mounts the cache directory
- *
- * @param string $user user name
- */
- private static function mountCacheDir($user) {
- $cacheBaseDir = \OC::$server->getConfig()->getSystemValue('cache_path', '');
- if ($cacheBaseDir !== '') {
- $cacheDir = rtrim($cacheBaseDir, '/') . '/' . $user;
- if (!file_exists($cacheDir)) {
- mkdir($cacheDir, 0770, true);
- }
- // mount external cache dir to "/$user/cache" mount point
- self::mount('\OC\Files\Storage\Local', array('datadir' => $cacheDir), '/' . $user . '/cache');
- }
- }
-
- /**
* get the default filesystem view
*
* @return View