Show More
@@ -40,7 +40,8 b' def free_cache_keys(*args):' | |||||
40 | try: |
|
40 | try: | |
41 | for cache_proc in cache_keys_by_pid: |
|
41 | for cache_proc in cache_keys_by_pid: | |
42 | like_expression = '{}%'.format(cache_proc) |
|
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 | cache_keys_by_pid.remove(cache_proc) |
|
45 | cache_keys_by_pid.remove(cache_proc) | |
45 | Session().commit() |
|
46 | Session().commit() | |
46 | except Exception: |
|
47 | except Exception: |
General Comments 0
You need to be logged in to leave comments.
Login now