clear cache after removing files

This commit is contained in:
j 2016-02-14 14:43:50 +05:30
parent 59765b074e
commit 80f2d02dcc
1 changed files with 1 additions and 0 deletions

View File

@ -164,6 +164,7 @@ def remove(data):
if 'ids' in data and data['ids']:
for i in models.Item.query.filter(models.Item.id.in_(data['ids'])):
i.remove_file()
state.cache.clear('group:')
return {
'items': []
}