[Pkg-owncloud-commits] [owncloud] 332/457: Fix login handler for file cache - fixes #16795

David Prévot taffit at moszumanska.debian.org
Sun Jun 28 20:06:34 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit 97a3d8c313beb5a92181f88bdd687a159da3f3c7
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date:   Mon Jun 8 14:13:38 2015 +0200

    Fix login handler for file cache - fixes #16795
---
 lib/base.php               | 5 ++++-
 lib/private/cache/file.php | 5 -----
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/lib/base.php b/lib/base.php
index abbb67e..b9f2e4a 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -729,7 +729,10 @@ class OC {
 
 			// NOTE: This will be replaced to use OCP
 			$userSession = self::$server->getUserSession();
-			$userSession->listen('postLogin', '\OC\Cache\File', 'loginListener');
+			$userSession->listen('\OC\User', 'postLogin', function () {
+				$cache = new \OC\Cache\File();
+				$cache->gc();
+			});
 		}
 	}
 
diff --git a/lib/private/cache/file.php b/lib/private/cache/file.php
index c70698e..bd3b5bc 100644
--- a/lib/private/cache/file.php
+++ b/lib/private/cache/file.php
@@ -166,9 +166,4 @@ class File {
 			}
 		}
 	}
-
-	public static function loginListener() {
-		$c = new self();
-		$c->gc();
-	}
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list