From be380accb90d0a4f72a56a1166072b20731b0083 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 3 Dec 2015 14:10:05 +0100 Subject: clear mount cache when deleting user --- lib/public/files/config/iusermountcache.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lib/public/files') diff --git a/lib/public/files/config/iusermountcache.php b/lib/public/files/config/iusermountcache.php index 156ebbf448c..888e5d41e24 100644 --- a/lib/public/files/config/iusermountcache.php +++ b/lib/public/files/config/iusermountcache.php @@ -31,7 +31,7 @@ use OCP\IUser; */ interface IUserMountCache { /** - * Register a mount for a user to the cache + * Register mounts for a user to the cache * * @param IUser $user * @param IMountPoint[] $mounts @@ -59,4 +59,12 @@ interface IUserMountCache { * @since 9.0.0 */ public function getMountsForRootId($rootFileId); + + /** + * Remove all cached mounts for a user + * + * @param IUser $user + * @since 9.0.0 + */ + public function removeUserMounts(IUser $user); } -- cgit v1.2.3