don't try to optimise the session table. Just let it fragment and let the DB worry about it.

This commit is contained in:
redmatrix 2015-08-24 16:05:51 -07:00
parent b085a3243c
commit 0edac8810b

View File

@ -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;
}