diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-22 17:26:28 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-01-22 17:26:28 +0100 |
commit | a203089cfd8517c7a416c166f0ea773fe954e74b (patch) | |
tree | 9a289ae6508c076fa3abdfca5d9789081546412a /lib | |
parent | 7731b2913691db6966dac77241ed93b45902f7e3 (diff) | |
parent | b35aa513ab0b7868eea897126cca22d655c1b6a7 (diff) | |
download | nextcloud-server-a203089cfd8517c7a416c166f0ea773fe954e74b.tar.gz nextcloud-server-a203089cfd8517c7a416c166f0ea773fe954e74b.zip |
Merge pull request #21836 from RomanKreisel/master
Solves #21835 (https://github.com/owncloud/core/issues/21835)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/group/manager.php | 5 |
1 files changed, 5 insertions, 0 deletions
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(); } |