clear cache after removing files
This commit is contained in:
parent
59765b074e
commit
80f2d02dcc
1 changed files with 1 additions and 0 deletions
|
@ -164,6 +164,7 @@ def remove(data):
|
||||||
if 'ids' in data and data['ids']:
|
if 'ids' in data and data['ids']:
|
||||||
for i in models.Item.query.filter(models.Item.id.in_(data['ids'])):
|
for i in models.Item.query.filter(models.Item.id.in_(data['ids'])):
|
||||||
i.remove_file()
|
i.remove_file()
|
||||||
|
state.cache.clear('group:')
|
||||||
return {
|
return {
|
||||||
'items': []
|
'items': []
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue