diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-11-21 14:33:58 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-11-21 14:33:58 +0000 |
| commit | c8fb75d8b8c4b52b2460e71b91146cbcb579410a (patch) | |
| tree | 01fd7db910d680634656b5691e9796538f1b1ceb /roundcubemail/program/include | |
| parent | 685b4ae56fe7da703f3dd8e7de692ec08b34ff7c (diff) | |
- Fix 'cache' table cleanup on session destroy (#1485516)
git-svn-id: https://svn.roundcube.net/trunk@2075 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index f1483af9b..d8845cc74 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -2146,11 +2146,11 @@ class rcube_imap { $this->db->query( "UPDATE ".get_table_name('cache')." - SET created=".$this->db->now().", - data=? + SET created=".$this->db->now().", data=?, session_id=? WHERE user_id=? AND cache_key=?", $data, + session_id(), $_SESSION['user_id'], $key); } @@ -2159,11 +2159,12 @@ class rcube_imap { $this->db->query( "INSERT INTO ".get_table_name('cache')." - (created, user_id, cache_key, data) - VALUES (".$this->db->now().", ?, ?, ?)", + (created, user_id, cache_key, data, session_id) + VALUES (".$this->db->now().", ?, ?, ?, ?)", $_SESSION['user_id'], $key, - $data); + $data, + session_id()); } } |
