Added more caching to channelhandler as well as players in order to cut back on unnecessary database calls.

This commit is contained in:
Griatch 2012-04-26 13:38:34 +02:00
parent a8373c685f
commit 1a6ef5d983
6 changed files with 75 additions and 45 deletions

View file

@ -247,6 +247,8 @@ class ObjectDB(TypedObject):
"Setter. Allows for self.player = value"
if isinstance(player, TypeClass):
player = player.dbobj
self.db_player = player
self.save()
_set_cache(self, "player", player)
#@player.deleter
def __player_del(self):