1
1
Fork 0

ping.php perfomance: reverting useless session write changes

This commit is contained in:
Hypolite Petovan 2016-10-28 22:15:24 -04:00
parent bc407080d2
commit 0131656a06

View file

@ -52,12 +52,12 @@ function ref_session_write($id, $data) {
if ($session_exists) { if ($session_exists) {
$r = q("UPDATE `session` $r = q("UPDATE `session`
SET `data` = '%s' SET `data` = '%s'
WHERE `sid` = '%s' AND `data` != '%s'", WHERE `data` != '%s' AND `sid` = '%s'",
dbesc($data), dbesc($data), dbesc($id)); dbesc($data), dbesc($data), dbesc($id));
$r = q("UPDATE `session` $r = q("UPDATE `session`
SET `expire` = '%s' SET `expire` = '%s'
WHERE `sid` = '%s' AND `expire` != '%s'", WHERE `expire` != '%s' AND `sid` = '%s'",
dbesc($expire), dbesc($expire), dbesc($id)); dbesc($expire), dbesc($expire), dbesc($id));
} else { } else {
$r = q("INSERT INTO `session` $r = q("INSERT INTO `session`