fix group cache

This commit is contained in:
j 2016-01-17 16:32:17 +05:30
commit 0a4689387b
3 changed files with 8 additions and 3 deletions

View file

@ -140,9 +140,7 @@ def edit(data):
if len(ids) > 1:
response = data
response['id'] = edited
for key in list(state.cache):
if key.startswith('group:'):
state.cache.delete(key)
state.cache.clear('group:')
return response
actions.register(edit, cache=False)