From e51467689d29ad68b7562d4b729ad5435f2ba54b Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 21 Apr 2016 14:48:08 +0200 Subject: mount custom cache folder using mount providers --- lib/private/Files/Filesystem.php | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'lib/private/Files/Filesystem.php') diff --git a/lib/private/Files/Filesystem.php b/lib/private/Files/Filesystem.php index 7cd1f56071c..d1162324cbb 100644 --- a/lib/private/Files/Filesystem.php +++ b/lib/private/Files/Filesystem.php @@ -423,8 +423,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(); @@ -460,23 +458,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 * -- cgit v1.2.3