diff options
author | alecpl <alec@alec.pl> | 2012-04-19 06:56:52 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2012-04-19 06:56:52 +0000 |
commit | 6a8b4c2951314441e670d89204dd3b913698b23d (patch) | |
tree | 6048896be31fb04bdba552fec9c0eb73841b2794 /program/include/rcube_imap.php | |
parent | b4f95a9387a391054ad37c7cfc988ed66adc4b44 (diff) |
- Fix incorrect cache ttl used in get_cache_engine() (#1488447), use time() where mktime() without arguments was used
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r-- | program/include/rcube_imap.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index 2e1e3ede5..daba72e50 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -3531,7 +3531,9 @@ class rcube_imap extends rcube_storage { if ($this->caching && !$this->cache) { $rcube = rcube::get_instance(); - $ttl = $rcube->config->get('message_cache_lifetime', '10d') - mktime(); + $ttl = $rcube->config->get('message_cache_lifetime', '10d'); + $ttl = get_offset_time($ttl) - time(); + $this->cache = $rcube->get_cache('IMAP', $this->caching, $ttl); } |