mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
Slightly smaller cache for active
This commit is contained in:
parent
53faa084c2
commit
d4e42555f2
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ def is_rtp(user):
|
||||||
return rtp_group.check_member(ldap.get_member(user, uid=True))
|
return rtp_group.check_member(ldap.get_member(user, uid=True))
|
||||||
|
|
||||||
|
|
||||||
@lru_cache(maxsize=256)
|
@lru_cache(maxsize=128)
|
||||||
def is_active(user):
|
def is_active(user):
|
||||||
ldap = connect_ldap()
|
ldap = connect_ldap()
|
||||||
active_group = ldap.get_group('active')
|
active_group = ldap.get_group('active')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue