kopia lustrzana https://github.com/friendica/friendica
Merge pull request #2417 from annando/1603-sess_data
There is no table "sess_data" - this database call is uselesspull/2420/head
commit
bfde20f5fe
|
@ -69,7 +69,7 @@ function ref_session_destroy ($id) {
|
||||||
if(! function_exists('ref_session_gc')) {
|
if(! function_exists('ref_session_gc')) {
|
||||||
function ref_session_gc($expire) {
|
function ref_session_gc($expire) {
|
||||||
q("DELETE FROM `session` WHERE `expire` < %d", dbesc(time()));
|
q("DELETE FROM `session` WHERE `expire` < %d", dbesc(time()));
|
||||||
q("OPTIMIZE TABLE `sess_data`");
|
//q("OPTIMIZE TABLE `sess_data`");
|
||||||
return true;
|
return true;
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue