Commit 6f3032d5 authored by Romain Loth's avatar Romain Loth

[FIX] server cache clean after detached instance error (should make the...

[FIX] server cache clean after detached instance error (should make the exception not critical anymore)
parent 89e257ae
......@@ -32,6 +32,10 @@ def requires_auth(func):
from gargantext.util.db import session
session.rollback()
print("=== session rollback ok!")
# re init the global cache (it must still have detached instances)
from gargantext.util.db_cache import cache
cache.clean_all()
print("=== cache reinit ok!")
# and relogin for safety
url = '/auth/login/?next=%s' % urlencode(request.path)
return redirect(url)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment