There is no table "sess_data" - this database call is useless

This commit is contained in:
Michael Vogel 2016-03-18 16:42:10 +01:00 committed by Roland Haeder
parent 4aec4f5bd4
commit 99bf63dbdf
No known key found for this signature in database
GPG key ID: B72F8185C6C7BD78

View file

@ -69,7 +69,7 @@ function ref_session_destroy ($id) {
if(! function_exists('ref_session_gc')) {
function ref_session_gc($expire) {
q("DELETE FROM `session` WHERE `expire` < %d", dbesc(time()));
q("OPTIMIZE TABLE `sess_data`");
//q("OPTIMIZE TABLE `sess_data`");
return true;
}}