mirror of
https://github.com/evennia/evennia.git
synced 2026-04-04 06:57:16 +02:00
Added /flushmem switch to the server command to incur the idmapper flushing.
This commit is contained in:
parent
e7e50039d7
commit
4b8ed234fd
3 changed files with 20 additions and 5 deletions
|
|
@ -326,7 +326,7 @@ def flush_cache(**kwargs):
|
|||
for cls in class_hierarchy([SharedMemoryModel]):
|
||||
cls.flush_instance_cache()
|
||||
# run the python garbage collector
|
||||
gc.collect()
|
||||
return gc.collect()
|
||||
#request_finished.connect(flush_cache)
|
||||
post_syncdb.connect(flush_cache)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue