summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-05-12 19:19:41 +0000
committeralecpl <alec@alec.pl>2008-05-12 19:19:41 +0000
commitfc231219823abe77a8e6b6421699a9bf99a69e48 (patch)
treec8b1816104682ff08b8619f219c6c17c8b47bbe3 /program
parent72b2807fb94ff03e427bba54b39f720833a61b30 (diff)
-added check for caching_enabled (#1485051)
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_imap.php3
1 files changed, 3 insertions, 0 deletions
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)