summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
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)