mirror of
https://github.com/evennia/evennia.git
synced 2026-04-05 23:47:16 +02:00
Added flushing to attribute caches when an typed object is deleted. This fixes isse 295, but keeping that open for a little longer to see if some other solution can be devised.
This commit is contained in:
parent
82b82318d5
commit
2386b308f5
1 changed files with 8 additions and 0 deletions
|
|
@ -826,6 +826,14 @@ class TypedObject(SharedMemoryModel):
|
|||
if any(("%s.%s" % (_GA(cls,"__module__"), _GA(cls,"__name__")) == typec for typec in typeclasses))))
|
||||
|
||||
|
||||
def delete(self, *args, **kwargs):
|
||||
"""
|
||||
Type-level cleanup
|
||||
"""
|
||||
flush_attr_cache()
|
||||
super(TypedObject, self).delete(*args, **kwargs)
|
||||
|
||||
|
||||
#
|
||||
# Object manipulation methods
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue