Avoid close cron sessions while gc
This commit is contained in:
parent
86fd1275be
commit
2a24e22335
|
@ -191,8 +191,7 @@ function pandora_session_gc($max_lifetime=300)
|
||||||
);
|
);
|
||||||
|
|
||||||
// Deleting cron and empty sessions.
|
// Deleting cron and empty sessions.
|
||||||
$sql = "DELETE FROM tsessions_php WHERE
|
$sql = 'DELETE FROM tsessions_php WHERE data IS NULL';
|
||||||
data IS NULL OR id_session REGEXP '^cron-'";
|
|
||||||
db_process_sql($sql);
|
db_process_sql($sql);
|
||||||
|
|
||||||
return $retval;
|
return $retval;
|
||||||
|
|
Loading…
Reference in New Issue