Skip to content
Snippets Groups Projects
Commit 872fd8f8 authored by ynerant's avatar ynerant
Browse files

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

parent 9b090a14
No related branches found
No related tags found
2 merge requests!123Corrections diverses,!122Atomicité
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment