1
0
Fork 0

Merge pull request #2417 from annando/1603-sess_data

There is no table "sess_data" - this database call is useless
This commit is contained in:
fabrixxm 2016-03-18 18:46:28 +01:00
commit bfde20f5fe

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