summaryrefslogtreecommitdiff
path: root/program/include/rcube_imap.php
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-04-19 07:02:14 +0000
committeralecpl <alec@alec.pl>2012-04-19 07:02:14 +0000
commit6dc7ce5a0692bf7433a5ab2221457fda4893502a (patch)
treea8879c057e4f91b64eb136521f30af3d053c52de /program/include/rcube_imap.php
parent753bf7707be210098fa2204cc230b520beeea2eb (diff)
- Fix incorrect cache ttl used in get_cache_engine() (#1488447)
Diffstat (limited to 'program/include/rcube_imap.php')
-rw-r--r--program/include/rcube_imap.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index bd8f35176..5e36f16c5 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -3531,7 +3531,8 @@ class rcube_imap extends rcube_storage
{
if ($this->caching && !$this->cache) {
$rcmail = rcmail::get_instance();
- $ttl = $rcmail->config->get('message_cache_lifetime', '10d') - mktime();
+ $ttl = $rcmail->config->get('message_cache_lifetime', '10d');
+ $ttl = get_offset_time($ttl) - time();
$this->cache = $rcmail->get_cache('IMAP', $this->caching, $ttl);
}