Version 0.3.2, rev351, Sidebar to display site infos an modify settings, Per-site upload/download bytes statistics, Deny different origin media requests, Allow 10sec to finish query modifications, Websocket display errors to client instead of disconnecting, Allow specify notification id to server-side messages, Track every command response time
This commit is contained in:
parent
b1c5b7d3a3
commit
b83d6ba2ff
43 changed files with 8104 additions and 39 deletions
|
@ -12,14 +12,14 @@ opened_dbs = []
|
|||
|
||||
|
||||
# Close idle databases to save some memory
|
||||
def cleanup():
|
||||
def dbCleanup():
|
||||
while 1:
|
||||
time.sleep(60 * 5)
|
||||
for db in opened_dbs[:]:
|
||||
if time.time() - db.last_query_time > 60 * 3:
|
||||
db.close()
|
||||
|
||||
gevent.spawn(cleanup)
|
||||
gevent.spawn(dbCleanup)
|
||||
|
||||
|
||||
class Db:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue