File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 3636
3737namespace OCA \User_LDAP ;
3838
39+ use OC \Cache \CappedMemoryCache ;
3940
4041class Group_LDAP extends BackendUtility implements \OCP \GroupInterface {
4142 protected $ enabled = false ;
4243
4344 /**
4445 * @var string[] $cachedGroupMembers array of users with gid as key
4546 */
46- protected $ cachedGroupMembers = array () ;
47+ protected $ cachedGroupMembers ;
4748
4849 /**
4950 * @var string[] $cachedGroupsByMember array of groups with uid as key
5051 */
51- protected $ cachedGroupsByMember = array () ;
52+ protected $ cachedGroupsByMember ;
5253
5354 public function __construct (Access $ access ) {
5455 parent ::__construct ($ access );
@@ -57,6 +58,9 @@ public function __construct(Access $access) {
5758 if (!empty ($ filter ) && !empty ($ gassoc )) {
5859 $ this ->enabled = true ;
5960 }
61+
62+ $ this ->cachedGroupMembers = new CappedMemoryCache ();
63+ $ this ->cachedGroupsByMember = new CappedMemoryCache ();
6064 }
6165
6266 /**
You can’t perform that action at this time.
0 commit comments