Don't cache permissions in debug mode, that's very slow
This commit is contained in:
parent
9b090a145c
commit
872fd8f86d
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue