clear cache after removing files

This commit is contained in:
j 2016-02-14 14:43:50 +05:30
parent 59765b074e
commit 80f2d02dcc

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': []
}