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( |
|
|
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