mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 05:57:16 +02:00
Activated propcache with new cache system. Still not functioning correctly, also the content cache needs to be handled.
This commit is contained in:
parent
b6383ddab9
commit
fb3259be8c
4 changed files with 87 additions and 66 deletions
|
|
@ -65,7 +65,7 @@ class ObjAttribute(Attribute):
|
|||
verbose_name = "Object Attribute"
|
||||
verbose_name_plural = "Object Attributes"
|
||||
|
||||
# attach the cache handlers for attribute lookup
|
||||
# attach the cache handlers
|
||||
post_init.connect(attr_post_init, sender=ObjAttribute, dispatch_uid="objattrcache")
|
||||
pre_delete.connect(attr_pre_delete, sender=ObjAttribute, dispatch_uid="objattrcache")
|
||||
|
||||
|
|
@ -248,7 +248,7 @@ class ObjectDB(TypedObject):
|
|||
"Deleter. Allows for del self.aliases"
|
||||
for alias in Alias.objects.filter(db_obj=self):
|
||||
alias.delete()
|
||||
del_prop_cache(self, "_aliases")
|
||||
#del_prop_cache(self, "_aliases")
|
||||
aliases = property(__aliases_get, __aliases_set, __aliases_del)
|
||||
|
||||
# player property (wraps db_player)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue