##// END OF EJS Templates
caches: pass synchronize session to cleanup cache_keys to fix some errors
super-admin -
r4848:fa13f07f default
parent child Browse files
Show More
@@ -40,7 +40,8 b' def free_cache_keys(*args):'
40 40 try:
41 41 for cache_proc in cache_keys_by_pid:
42 42 like_expression = '{}%'.format(cache_proc)
43 CacheKey.query().filter(CacheKey.cache_key.like(like_expression)).delete()
43 CacheKey.query().filter(
44 CacheKey.cache_key.like(like_expression)).delete(synchronize_session='fetch')
44 45 cache_keys_by_pid.remove(cache_proc)
45 46 Session().commit()
46 47 except Exception:
General Comments 0
You need to be logged in to leave comments. Login now