fix group cache
This commit is contained in:
parent
6d659b8049
commit
0a4689387b
3 changed files with 8 additions and 3 deletions
|
|
@ -233,6 +233,7 @@ def addListItems(data):
|
|||
l = models.List.get_or_create(data['list'])
|
||||
if l:
|
||||
l.add_items(data['items'])
|
||||
state.cache.clear('group:')
|
||||
return l.json()
|
||||
return {}
|
||||
actions.register(addListItems, cache=False)
|
||||
|
|
@ -248,6 +249,7 @@ def removeListItems(data):
|
|||
l = models.List.get(data['list'])
|
||||
if l:
|
||||
l.remove_items(data['items'])
|
||||
state.cache.clear('group:')
|
||||
return l.json()
|
||||
return {}
|
||||
actions.register(removeListItems, cache=False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue