=== modified file 'program/include/main.inc'
|
|
|
|
| 924 | 924 | if (empty($CONFIG['message_cache_lifetime'])) |
| 925 | 925 | return; |
| 926 | 926 | |
| | 927 | if ($CONFIG['enable_caching']!==TRUE) |
| | 928 | return; |
| | 929 | |
| 927 | 930 | // get target timestamp |
| 928 | 931 | $ts = get_offset_time($CONFIG['message_cache_lifetime'], -1); |
| 929 | 932 | |
=== modified file 'program/include/session.inc'
|
|
|
|
| 106 | 106 | if ($DB->is_error()) |
| 107 | 107 | return FALSE; |
| 108 | 108 | |
| 109 | | // delete session entries in cache table |
| 110 | | $DB->query("DELETE FROM ".get_table_name('cache')." |
| 111 | | WHERE session_id=?", |
| 112 | | $key); |
| 113 | | |
| | 109 | if ($CONFIG['enable_caching']===TRUE) |
| | 110 | { |
| | 111 | // delete session entries in cache table |
| | 112 | $DB->query("DELETE FROM ".get_table_name('cache')." |
| | 113 | WHERE session_id=?", |
| | 114 | $key); |
| | 115 | } |
| 114 | 116 | $DB->query("DELETE FROM ".get_table_name('session')." |
| 115 | 117 | WHERE sess_id=?", |
| 116 | 118 | $key); |