From 80f2d02dcccd4f4ccbc6a72d9a959fa510da8d81 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 14 Feb 2016 14:43:50 +0530 Subject: [PATCH] clear cache after removing files --- oml/item/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/oml/item/api.py b/oml/item/api.py index 8f711a7..16a66a3 100644 --- a/oml/item/api.py +++ b/oml/item/api.py @@ -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': [] }