From b35aa513ab0b7868eea897126cca22d655c1b6a7 Mon Sep 17 00:00:00 2001 From: Roman Kreisel Date: Thu, 21 Jan 2016 17:29:14 +0100 Subject: [PATCH] Solves # --- lib/private/group/manager.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/private/group/manager.php b/lib/private/group/manager.php index 2c28f3b0e7f..98e5551bcc5 100644 --- a/lib/private/group/manager.php +++ b/lib/private/group/manager.php @@ -126,10 +126,15 @@ class Manager extends PublicEmitter implements IGroupManager { */ public function addBackend($backend) { $this->backends[] = $backend; + $this->clearCaches(); } public function clearBackends() { $this->backends = array(); + $this->clearCaches(); + } + + protected function clearCaches() { $this->cachedGroups = array(); $this->cachedUserGroups = array(); } -- 2.39.5