From fc231219823abe77a8e6b6421699a9bf99a69e48 Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 12 May 2008 19:19:41 +0000 Subject: -added check for caching_enabled (#1485051) --- program/include/rcube_imap.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'program/include') diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index 3a634e028..8166fd69c 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -1903,6 +1903,9 @@ class rcube_imap */ function clear_cache($key=NULL) { + if (!$this->caching_enabled) + return; + if ($key===NULL) { foreach ($this->cache as $key => $data) -- cgit v1.2.3