aboutsummaryrefslogtreecommitdiffstats
path: root/lib/cache
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2013-07-16 15:22:47 +0200
committerRobin Appelman <icewind@owncloud.com>2013-07-16 15:22:47 +0200
commit0ae8eb4f5e05d9e3c5a22a7278ee104edd95fdf4 (patch)
tree47d53cb6b0deb37aa31a41342c7c73f1f0805ba0 /lib/cache
parent5418c98a81caba2da00b2e81fb56fe373737a7c8 (diff)
parentd673d8c25310f0ea73927b8b252e6823a11087f4 (diff)
downloadnextcloud-server-0ae8eb4f5e05d9e3c5a22a7278ee104edd95fdf4.tar.gz
nextcloud-server-0ae8eb4f5e05d9e3c5a22a7278ee104edd95fdf4.zip
Merge branch 'master' into cache
Diffstat (limited to 'lib/cache')
-rw-r--r--lib/cache/file.php1
-rw-r--r--lib/cache/fileglobalgc.php8
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();
+ }
+}