From 29c64b0bdd3ee16532ed5f390044e5d5bec5bdec Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Sun, 23 Nov 2008 08:24:49 -0500 Subject: [PATCH] Also clean cache table when removing old messages from cache --- program/include/session.inc | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/program/include/session.inc b/program/include/session.inc index 3f01fcd..f91a51a 100644 --- a/program/include/session.inc +++ b/program/include/session.inc @@ -125,12 +125,12 @@ return false; } - if ($rcmail->config->get('enable_caching')) - rcmail_message_cache_gc(); - // just delete all expired sessions $DB->query("DELETE FROM " . get_table_name('session') . " - WHERE changed < " . $now); + WHERE changed < " . $DB->fromunixtime(time() - $maxlifetime)); + + if ($rcmail->config->get('enable_caching')) + rcmail_cache_gc(); rcmail_temp_gc(); -- Gitblit v1.9.1