From fc231219823abe77a8e6b6421699a9bf99a69e48 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 12 May 2008 15:19:41 -0400
Subject: [PATCH] -added check for caching_enabled (#1485051)

---
 program/include/rcube_imap.php |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index 3a634e0..8166fd6 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -1903,6 +1903,9 @@
    */
   function clear_cache($key=NULL)
     {
+    if (!$this->caching_enabled)
+      return;
+    
     if ($key===NULL)
       {
       foreach ($this->cache as $key => $data)

--
Gitblit v1.9.1