|
|
@ -3837,13 +3837,13 @@ class rcube_imap
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Enable or disable indexes caching
|
|
|
|
* Enable or disable indexes caching
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param boolean $type Cache type (@see rcmail::get_cache)
|
|
|
|
* @param string $type Cache type (@see rcmail::get_cache)
|
|
|
|
* @access public
|
|
|
|
* @access public
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
function set_caching($type)
|
|
|
|
function set_caching($type)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ($type) {
|
|
|
|
if ($type) {
|
|
|
|
$this->caching = true;
|
|
|
|
$this->caching = $type;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
if ($this->cache)
|
|
|
|
if ($this->cache)
|
|
|
@ -3860,7 +3860,7 @@ class rcube_imap
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ($this->caching && !$this->cache) {
|
|
|
|
if ($this->caching && !$this->cache) {
|
|
|
|
$rcmail = rcmail::get_instance();
|
|
|
|
$rcmail = rcmail::get_instance();
|
|
|
|
$this->cache = $rcmail->get_cache('IMAP', $type);
|
|
|
|
$this->cache = $rcmail->get_cache('IMAP', $this->caching);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return $this->cache;
|
|
|
|
return $this->cache;
|
|
|
|