Show More
@@ -38,7 +38,7 b' def free_cache_keys(*args):' | |||||
38 |
|
38 | |||
39 | if cache_keys_by_pid: |
|
39 | if cache_keys_by_pid: | |
40 | try: |
|
40 | try: | |
41 | for cache_proc in cache_keys_by_pid: |
|
41 | for cache_proc in set(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 | CacheKey.cache_key.like(like_expression)).delete(synchronize_session='fetch') |
General Comments 0
You need to be logged in to leave comments.
Login now