remove unused list cache

This commit is contained in:
j 2016-01-10 17:27:45 +05:30
commit bc593b65fd
3 changed files with 0 additions and 38 deletions

View file

@ -156,7 +156,6 @@ class Changelog(db.Model):
if user not in i.users:
i.add_user(user)
i.update()
user.clear_smart_list_cache()
return True
def action_edititem(self, user, timestamp, itemid, meta):
@ -194,7 +193,6 @@ class Changelog(db.Model):
else:
i.update_meta(meta, modified=i.modified)
i.save()
user.clear_smart_list_cache()
return True
def action_removeitem(self, user, timestamp, itemid):
@ -207,8 +205,6 @@ class Changelog(db.Model):
i.update()
else:
i.delete()
user.clear_list_cache()
user.clear_smart_list_cache()
return True
def action_addlist(self, user, timestamp, name, query=None):
@ -224,7 +220,6 @@ class Changelog(db.Model):
if 'name' in new:
l.name = new['name']
l.save()
user.clear_list_cache()
return True
def action_orderlists(self, user, timestamp, lists):
@ -242,7 +237,6 @@ class Changelog(db.Model):
l = List.get(user.id, name)
if l:
l.remove()
user.clear_list_cache()
return True
def action_addlistitems(self, user, timestamp, name, ids):
@ -302,7 +296,6 @@ class Changelog(db.Model):
m = Metadata.get_or_create(key, value)
if m.edit(data, False):
m.update_items()
user.clear_smart_list_cache()
return True
def action_resetmeta(self, user, timestamp, key, value):
@ -310,5 +303,4 @@ class Changelog(db.Model):
m = Metadata.get(key, value)
if m and m.timestamp < timestamp:
m.reset()
user.clear_smart_list_cache()
return True