1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-11-26 18:37:12 +00:00

Don't cache permissions in debug mode, that's very slow

This commit is contained in:
Yohann D'ANELLO 2020-09-14 08:58:12 +02:00
parent 9b090a145c
commit 872fd8f86d

View File

@ -33,9 +33,9 @@ def memoize(f):
sess_funs = new_sess_funs sess_funs = new_sess_funs
def func(*args, **kwargs): def func(*args, **kwargs):
if settings.DEBUG: # if settings.DEBUG:
# Don't memoize in DEBUG mode # # Don't memoize in DEBUG mode
return f(*args, **kwargs) # return f(*args, **kwargs)
nonlocal last_collect nonlocal last_collect