don't try to optimise the session table. Just let it fragment and let the DB worry about it.
This commit is contained in:
parent
b085a3243c
commit
0edac8810b
@ -98,9 +98,6 @@ function ref_session_destroy ($id) {
|
||||
|
||||
function ref_session_gc($expire) {
|
||||
q("DELETE FROM session WHERE expire < %d", dbesc(time()));
|
||||
if (! get_config('system', 'innodb'))
|
||||
db_optimizetable('session');
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user