mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 12:07:17 +02:00
Added more caching to channelhandler as well as players in order to cut back on unnecessary database calls.
This commit is contained in:
parent
a8373c685f
commit
1a6ef5d983
6 changed files with 75 additions and 45 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue