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
1 changed files with 3 additions and 3 deletions

View File

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