Status caching should be disabled by default
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 13 Feb 2009 07:31:31 +0000 (00:31 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Sat, 14 Feb 2009 20:32:03 +0000 (13:32 -0700)
framework/Imap_Client/lib/Horde/Imap/Client.php
framework/Imap_Client/lib/Horde/Imap/Client/Base.php

index 1d060b2..79f61ea 100644 (file)
@@ -55,7 +55,7 @@
  *            VALUES: false, 'ssl', 'tls'.
  *            DEFAULT: No encryption
  *   statuscache - (boolean) Cache STATUS responses?
- *                 DEFAULT: True
+ *                 DEFAULT: False
  *   timeout - (integer)  Connection timeout, in seconds.
  *             DEFAULT: 10 seconds
  *
index edff7f0..76adc87 100644 (file)
@@ -115,10 +115,6 @@ abstract class Horde_Imap_Client_Base
             $params['timeout'] = 10;
         }
 
-        if (!isset($params['statuscache'])) {
-            $params['statuscache'] = true;
-        }
-
         if (empty($params['cache'])) {
             $params['cache'] = array('fields' => array());
         } elseif (empty($params['cache']['fields'])) {
@@ -952,7 +948,7 @@ abstract class Horde_Imap_Client_Base
 
         /* Check for cached information. */
         if (!$curr_mbox &&
-            $this->_params['statuscache'] &&
+            !empty($this->_params['statuscache']) &&
             isset($this->_temp['statuscache'][$mailbox])) {
             $ptr = &$this->_temp['statuscache'][$mailbox];