mirror of
https://github.com/friendica/friendica
synced 2024-12-23 08:40:16 +00:00
ping.php perfomance: reverting useless session write changes
This commit is contained in:
parent
bc407080d2
commit
0131656a06
1 changed files with 2 additions and 2 deletions
|
@ -52,12 +52,12 @@ function ref_session_write($id, $data) {
|
|||
if ($session_exists) {
|
||||
$r = q("UPDATE `session`
|
||||
SET `data` = '%s'
|
||||
WHERE `sid` = '%s' AND `data` != '%s'",
|
||||
WHERE `data` != '%s' AND `sid` = '%s'",
|
||||
dbesc($data), dbesc($data), dbesc($id));
|
||||
|
||||
$r = q("UPDATE `session`
|
||||
SET `expire` = '%s'
|
||||
WHERE `sid` = '%s' AND `expire` != '%s'",
|
||||
WHERE `expire` != '%s' AND `sid` = '%s'",
|
||||
dbesc($expire), dbesc($expire), dbesc($id));
|
||||
} else {
|
||||
$r = q("INSERT INTO `session`
|
||||
|
|
Loading…
Reference in a new issue