Opened 5 years ago
Closed 5 years ago
#1485516 closed Bugs (fixed)
Cache deletion by session_id always fails
| Reported by: | ziba | Owned by: | thomasb |
|---|---|---|---|
| Priority: | 5 | Milestone: | 0.2-stable |
| Component: | PHP backend | Version: | 0.2-beta |
| Severity: | normal | Keywords: | |
| Cc: |
Description
If caching is enabled, then in program/include/session.inc rcube_sess_destroy calls:
$DB->query("DELETE FROM " . get_table_name('cache') . " WHERE session_id=?", $key);
However, I couldn't find any place where cache.session_id is populated.
On our production systems the cache table was large enough to delay user logins by about 20 seconds while it searched through thousands of Null values.
Change History (3)
comment:1 Changed 5 years ago by alec
- Milestone changed from later to 0.2-stable
comment:2 Changed 5 years ago by alec
- Owner set to thomasb
comment:3 Changed 5 years ago by alec
- Resolution set to fixed
- Status changed from new to closed
Fixed in [be7d3b69].
Note: See
TracTickets for help on using
tickets.

You're right. rcube_imap::_write_cache_record() should save session_id on insert.