Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
1c369093
Commit
1c369093
authored
Nov 19, 2014
by
Arthur Schiwon
Browse files
cache total user count
Conflicts: apps/user_ldap/user_ldap.php
parent
ee168a12
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/user_ldap/user_ldap.php
View file @
1c369093
...
...
@@ -291,7 +291,12 @@ class USER_LDAP extends BackendUtility implements \OCP\UserInterface {
*/
public
function
countUsers
()
{
$filter
=
$this
->
access
->
getFilterForUserCount
();
$cacheKey
=
'countUsers-'
.
$filter
;
if
(
!
is_null
(
$entries
=
$this
->
access
->
connection
->
getFromCache
(
$cacheKey
)))
{
return
$entries
;
}
$entries
=
$this
->
access
->
countUsers
(
$filter
);
$this
->
access
->
connection
->
writeToCache
(
$cacheKey
,
$entries
);
return
$entries
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment