caches: make a set copy to edit it during operation
This commit is contained in:
parent
c07d61211b
commit
b2ee30b85a
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ def free_cache_keys(*args):
|
|||
|
||||
if cache_keys_by_pid:
|
||||
try:
|
||||
for cache_proc in cache_keys_by_pid:
|
||||
for cache_proc in set(cache_keys_by_pid):
|
||||
like_expression = '{}%'.format(cache_proc)
|
||||
CacheKey.query().filter(
|
||||
CacheKey.cache_key.like(like_expression)).delete(synchronize_session='fetch')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue