diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-07-16 15:22:47 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-07-16 15:22:47 +0200 |
commit | 0ae8eb4f5e05d9e3c5a22a7278ee104edd95fdf4 (patch) | |
tree | 47d53cb6b0deb37aa31a41342c7c73f1f0805ba0 /lib/cache | |
parent | 5418c98a81caba2da00b2e81fb56fe373737a7c8 (diff) | |
parent | d673d8c25310f0ea73927b8b252e6823a11087f4 (diff) | |
download | nextcloud-server-0ae8eb4f5e05d9e3c5a22a7278ee104edd95fdf4.tar.gz nextcloud-server-0ae8eb4f5e05d9e3c5a22a7278ee104edd95fdf4.zip |
Merge branch 'master' into cache
Diffstat (limited to 'lib/cache')
-rw-r--r-- | lib/cache/file.php | 1 | ||||
-rw-r--r-- | lib/cache/fileglobalgc.php | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/cache/file.php b/lib/cache/file.php index f9ecf41dcac..531e1d50f40 100644 --- a/lib/cache/file.php +++ b/lib/cache/file.php @@ -14,6 +14,7 @@ class OC_Cache_File{ return $this->storage; } if(OC_User::isLoggedIn()) { + \OC\Files\Filesystem::initMountPoints(OC_User::getUser()); $subdir = 'cache'; $view = new \OC\Files\View('/'.OC_User::getUser()); if(!$view->file_exists($subdir)) { diff --git a/lib/cache/fileglobalgc.php b/lib/cache/fileglobalgc.php new file mode 100644 index 00000000000..a29c31f9063 --- /dev/null +++ b/lib/cache/fileglobalgc.php @@ -0,0 +1,8 @@ +<?php + + +class OC_Cache_FileGlobalGC extends \OC\BackgroundJob\Job{ + public function run($argument){ + OC_Cache_FileGlobal::gc(); + } +} |