Added /flushmem switch to the server command to incur the idmapper flushing.

This commit is contained in:
Griatch 2014-05-15 23:08:21 +02:00
parent e7e50039d7
commit 4b8ed234fd
3 changed files with 20 additions and 5 deletions

View file

@ -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)