We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 8157336a authored by Evan Prodromou's avatar Evan Prodromou

don't delete during select

parent 43747391
......@@ -108,20 +108,24 @@ class Session extends Memcached_DataObject
$epoch = common_sql_date(time() - $maxlifetime);
$ids = array();
$session = new Session();
$session->whereAdd('modified < "'.$epoch.'"');
while ($session->fetch()) {
$other = new Session();
$other->id = $session->id;
self::logdeb("Collecting session $other->id");
$result = $other->delete();
self::logdeb("garbage collection result = $result");
$ids[] = $session->id;
foreach ($ids as $id) {
static function setSaveHandler()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment